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 21
21
"# ;
22
22
23
23
fn main ( ) {
24
- let sync = GitSync :: from_current_dir ( ) ? ;
24
+ let sync = GitSync :: from_current_dir ( ) ;
25
25
26
26
// Collect args, then recollect as str refs so we can match on them
27
27
let args: Vec < _ > = env:: args ( ) . collect ( ) ;
Original file line number Diff line number Diff line change @@ -17,17 +17,17 @@ pub struct GitSync {
17
17
/// This code was adapted from the miri repository, via the rustc-dev-guide
18
18
/// (https://github.com/rust-lang/rustc-dev-guide/tree/c51adbd12d/josh-sync)
19
19
impl GitSync {
20
- pub fn from_current_dir ( ) -> anyhow :: Result < Self > {
20
+ pub fn from_current_dir ( ) -> Self {
21
21
let upstream_repo =
22
22
env:: var ( "UPSTREAM_ORG" ) . unwrap_or_else ( |_| "rust-lang" . to_owned ( ) ) + "/rust" ;
23
23
24
- Ok ( Self {
25
- upstream_url : format ! ( "https://github.com/{upstream_repo}/ " ) ,
24
+ Self {
25
+ upstream_url : format ! ( "https://github.com/{upstream_repo}" ) ,
26
26
upstream_repo,
27
27
upstream_ref : env:: var ( "UPSTREAM_REF" ) . unwrap_or_else ( |_| "HEAD" . to_owned ( ) ) ,
28
28
josh_filter : ":/library/compiler-builtins" . to_owned ( ) ,
29
29
josh_url_base : format ! ( "http://localhost:{JOSH_PORT}" ) ,
30
- } )
30
+ }
31
31
}
32
32
33
33
/// Pull from rust-lang/rust to compiler-builtins.
@@ -108,7 +108,7 @@ impl GitSync {
108
108
109
109
let merge_message = format ! (
110
110
"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 \
112
112
Upstream ref: {new_upstream_base}\n \
113
113
Filtered ref: {incoming_ref}\n \
114
114
",
You can’t perform that action at this time.
0 commit comments