@@ -1379,7 +1379,7 @@ impl Config {
1379
1379
. run_always ( )
1380
1380
. args ( [ "submodule" , "-q" , "sync" ] )
1381
1381
. arg ( relative_path)
1382
- . run ( & self ) ;
1382
+ . run ( self ) ;
1383
1383
1384
1384
// Try passing `--progress` to start, then run git again without if that fails.
1385
1385
let update = |progress : bool | {
@@ -1408,23 +1408,23 @@ impl Config {
1408
1408
git. arg ( relative_path) ;
1409
1409
git
1410
1410
} ;
1411
- if !update ( true ) . allow_failure ( ) . run ( & self ) {
1412
- update ( false ) . allow_failure ( ) . run ( & self ) ;
1411
+ if !update ( true ) . allow_failure ( ) . run ( self ) {
1412
+ update ( false ) . allow_failure ( ) . run ( self ) ;
1413
1413
}
1414
1414
1415
1415
// Save any local changes, but avoid running `git stash pop` if there are none (since it will exit with an error).
1416
1416
// diff-index reports the modifications through the exit status
1417
1417
let has_local_modifications =
1418
- !submodule_git ( ) . allow_failure ( ) . args ( [ "diff-index" , "--quiet" , "HEAD" ] ) . run ( & self ) ;
1418
+ !submodule_git ( ) . allow_failure ( ) . args ( [ "diff-index" , "--quiet" , "HEAD" ] ) . run ( self ) ;
1419
1419
if has_local_modifications {
1420
- submodule_git ( ) . allow_failure ( ) . args ( [ "stash" , "push" ] ) . run ( & self ) ;
1420
+ submodule_git ( ) . allow_failure ( ) . args ( [ "stash" , "push" ] ) . run ( self ) ;
1421
1421
}
1422
1422
1423
- submodule_git ( ) . allow_failure ( ) . args ( [ "reset" , "-q" , "--hard" ] ) . run ( & self ) ;
1424
- submodule_git ( ) . allow_failure ( ) . args ( [ "clean" , "-qdfx" ] ) . run ( & self ) ;
1423
+ submodule_git ( ) . allow_failure ( ) . args ( [ "reset" , "-q" , "--hard" ] ) . run ( self ) ;
1424
+ submodule_git ( ) . allow_failure ( ) . args ( [ "clean" , "-qdfx" ] ) . run ( self ) ;
1425
1425
1426
1426
if has_local_modifications {
1427
- submodule_git ( ) . allow_failure ( ) . args ( [ "stash" , "pop" ] ) . run ( & self ) ;
1427
+ submodule_git ( ) . allow_failure ( ) . args ( [ "stash" , "pop" ] ) . run ( self ) ;
1428
1428
}
1429
1429
}
1430
1430
0 commit comments