@@ -1379,7 +1379,7 @@ impl Config {
13791379 . run_always ( )
13801380 . args ( [ "submodule" , "-q" , "sync" ] )
13811381 . arg ( relative_path)
1382- . run ( & self ) ;
1382+ . run ( self ) ;
13831383
13841384 // Try passing `--progress` to start, then run git again without if that fails.
13851385 let update = |progress : bool | {
@@ -1408,23 +1408,23 @@ impl Config {
14081408 git. arg ( relative_path) ;
14091409 git
14101410 } ;
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 ) ;
14131413 }
14141414
14151415 // Save any local changes, but avoid running `git stash pop` if there are none (since it will exit with an error).
14161416 // diff-index reports the modifications through the exit status
14171417 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 ) ;
14191419 if has_local_modifications {
1420- submodule_git ( ) . allow_failure ( ) . args ( [ "stash" , "push" ] ) . run ( & self ) ;
1420+ submodule_git ( ) . allow_failure ( ) . args ( [ "stash" , "push" ] ) . run ( self ) ;
14211421 }
14221422
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 ) ;
14251425
14261426 if has_local_modifications {
1427- submodule_git ( ) . allow_failure ( ) . args ( [ "stash" , "pop" ] ) . run ( & self ) ;
1427+ submodule_git ( ) . allow_failure ( ) . args ( [ "stash" , "pop" ] ) . run ( self ) ;
14281428 }
14291429 }
14301430
0 commit comments