File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
library/compiler-builtins/crates/josh-sync/src Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2121"# ;
2222
2323fn 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 ( ) ;
Original file line number Diff line number Diff 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)
1919impl 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 ",
You can’t perform that action at this time.
0 commit comments