File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,8 @@ impl ProductVersionContext {
48
48
"loading config"
49
49
) ;
50
50
51
- toml:: from_str :: < T > ( & std:: fs:: read_to_string ( path) . context (
52
- LoadConfigSnafu {
53
- path,
54
- } ,
55
- ) ?)
56
- . context ( ParseConfigSnafu {
57
- path,
58
- } )
51
+ toml:: from_str :: < T > ( & std:: fs:: read_to_string ( path) . context ( LoadConfigSnafu { path } ) ?)
52
+ . context ( ParseConfigSnafu { path } )
59
53
}
60
54
61
55
fn load_product_config ( & self ) -> Result < ProductConfig > {
@@ -496,7 +490,7 @@ fn main() -> Result<()> {
496
490
mirror_remote
497
491
. push ( & [ & refspec] , Some ( & mut push_options) )
498
492
. context ( PushToMirrorSnafu {
499
- url : mirror_url. clone ( ) ,
493
+ url : mirror_url,
500
494
refspec : & refspec,
501
495
commit : base_commit,
502
496
} ) ?;
@@ -507,9 +501,7 @@ fn main() -> Result<()> {
507
501
tracing:: info!( ?base, base. commit = ?base_commit, "resolved base commit" ) ;
508
502
509
503
tracing:: info!( "saving version-level configuration" ) ;
510
- let config = ProductVersionConfig {
511
- base : base_commit,
512
- } ;
504
+ let config = ProductVersionConfig { base : base_commit } ;
513
505
let config_path = ctx. version_config_path ( ) ;
514
506
if let Some ( config_dir) = config_path. parent ( ) {
515
507
std:: fs:: create_dir_all ( config_dir)
Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ pub fn resolve_and_fetch_commitish(
169
169
) ;
170
170
true
171
171
} ) ;
172
-
173
172
repo. remote_anonymous ( upstream_url)
174
173
. context ( CreateRemoteSnafu {
175
174
repo,
You can’t perform that action at this time.
0 commit comments