Skip to content

Commit 560e5e2

Browse files
committed
update
1 parent 0703bc6 commit 560e5e2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

library/compiler-builtins/crates/josh-sync/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Usage:
2121
"#;
2222

2323
fn main() {
24-
let sync = GitSync::from_current_dir()?;
24+
let sync = GitSync::from_current_dir();
2525

2626
// Collect args, then recollect as str refs so we can match on them
2727
let args: Vec<_> = env::args().collect();

library/compiler-builtins/crates/josh-sync/src/sync.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ pub struct GitSync {
1717
/// This code was adapted from the miri repository, via the rustc-dev-guide
1818
/// (https://github.com/rust-lang/rustc-dev-guide/tree/c51adbd12d/josh-sync)
1919
impl GitSync {
20-
pub fn from_current_dir() -> anyhow::Result<Self> {
20+
pub fn from_current_dir() -> Self {
2121
let upstream_repo =
2222
env::var("UPSTREAM_ORG").unwrap_or_else(|_| "rust-lang".to_owned()) + "/rust";
2323

24-
Ok(Self {
25-
upstream_url: format!("https://github.com/{upstream_repo}/"),
24+
Self {
25+
upstream_url: format!("https://github.com/{upstream_repo}"),
2626
upstream_repo,
2727
upstream_ref: env::var("UPSTREAM_REF").unwrap_or_else(|_| "HEAD".to_owned()),
2828
josh_filter: ":/library/compiler-builtins".to_owned(),
2929
josh_url_base: format!("http://localhost:{JOSH_PORT}"),
30-
})
30+
}
3131
}
3232

3333
/// Pull from rust-lang/rust to compiler-builtins.
@@ -108,7 +108,7 @@ impl GitSync {
108108

109109
let merge_message = format!(
110110
"Merge ref {upstream_head_short}{filter} from {upstream_url}\n\n\
111-
Pull recent changes from {upstream_repo} via Josh.\n\n
111+
Pull recent changes from {upstream_repo} via Josh.\n\n\
112112
Upstream ref: {new_upstream_base}\n\
113113
Filtered ref: {incoming_ref}\n\
114114
",

0 commit comments

Comments
 (0)