@@ -12,7 +12,7 @@ fn commit_auto_rollback() -> crate::Result {
1212
1313 {
1414 let mut config = repo. config_snapshot_mut ( ) ;
15- config. set_raw_value ( & Core :: ABBREV , "4" ) ?;
15+ config. set_raw_value ( Core :: ABBREV , "4" ) ?;
1616 let repo = config. commit_auto_rollback ( ) ?;
1717 assert_eq ! ( repo. head_id( ) ?. shorten( ) ?. to_string( ) , "3189" ) ;
1818 }
@@ -21,7 +21,7 @@ fn commit_auto_rollback() -> crate::Result {
2121
2222 let repo = {
2323 let mut config = repo. config_snapshot_mut ( ) ;
24- config. set_raw_value ( & Core :: ABBREV , "4" ) ?;
24+ config. set_raw_value ( Core :: ABBREV , "4" ) ?;
2525 let mut repo = config. commit_auto_rollback ( ) ?;
2626 assert_eq ! ( repo. head_id( ) ?. shorten( ) ?. to_string( ) , "3189" ) ;
2727 // access to the mutable repo underneath
@@ -39,7 +39,7 @@ mod trusted_path {
3939 #[ test]
4040 fn optional_is_respected ( ) -> crate :: Result {
4141 let mut repo: gix:: Repository = named_repo ( "make_basic_repo.sh" ) ?;
42- repo. config_snapshot_mut ( ) . set_raw_value ( & "my.path" , "does-not-exist" ) ?;
42+ repo. config_snapshot_mut ( ) . set_raw_value ( "my.path" , "does-not-exist" ) ?;
4343
4444 let actual = repo
4545 . config_snapshot ( )
@@ -53,7 +53,7 @@ mod trusted_path {
5353 ) ;
5454
5555 repo. config_snapshot_mut ( )
56- . set_raw_value ( & "my.path" , ":(optional)does-not-exist" ) ?;
56+ . set_raw_value ( "my.path" , ":(optional)does-not-exist" ) ?;
5757 let actual = repo. config_snapshot ( ) . trusted_path ( "my.path" ) . transpose ( ) ?;
5858 assert_eq ! ( actual, None , "non-existing paths aren't returned to the caller" ) ;
5959 Ok ( ( ) )
@@ -71,7 +71,7 @@ fn snapshot_mut_commit_and_forget() -> crate::Result {
7171 assert_eq ! ( repo. config_snapshot( ) . integer( "core.abbrev" ) . expect( "set" ) , 4 ) ;
7272 {
7373 let mut repo = repo. config_snapshot_mut ( ) ;
74- repo. set_raw_value ( & Core :: ABBREV , "8" ) ?;
74+ repo. set_raw_value ( Core :: ABBREV , "8" ) ?;
7575 repo. forget ( ) ;
7676 }
7777 assert_eq ! ( repo. config_snapshot( ) . integer( "core.abbrev" ) , Some ( 4 ) ) ;
@@ -89,7 +89,7 @@ fn values_are_set_in_memory_only() {
8989
9090 {
9191 let mut config = repo. config_snapshot_mut ( ) ;
92- config. set_raw_value ( & "hallo.welt" , "true" ) . unwrap ( ) ;
92+ config. set_raw_value ( "hallo.welt" , "true" ) . unwrap ( ) ;
9393 config
9494 . set_subsection_value ( & Branch :: MERGE , "main" , "refs/heads/foo" )
9595 . unwrap ( ) ;
@@ -192,7 +192,7 @@ fn reload_reloads_on_disk_changes() -> crate::Result {
192192fn reload_discards_in_memory_only_changes ( ) -> crate :: Result {
193193 let mut repo = named_repo ( "make_config_repo.sh" ) ?;
194194
195- repo. config_snapshot_mut ( ) . set_raw_value ( & Core :: ABBREV , "4" ) ?;
195+ repo. config_snapshot_mut ( ) . set_raw_value ( Core :: ABBREV , "4" ) ?;
196196 assert_eq ! ( repo. config_snapshot( ) . integer( "core.abbrev" ) , Some ( 4 ) ) ;
197197
198198 repo. reload ( ) ?;
0 commit comments