@@ -1602,7 +1602,7 @@ pub mod tests {
16021602 let stream = bytes_to_stream ( expected. clone ( ) , 1023 ) ;
16031603 let obs = store. observe ( expected_hash) ;
16041604 let tt = store. add_stream ( stream) . await . temp_tag ( ) . await ?;
1605- assert_eq ! ( expected_hash, * tt. hash( ) ) ;
1605+ assert_eq ! ( expected_hash, tt. hash( ) ) ;
16061606 // we must at some point see completion, otherwise the test will hang
16071607 obs. await_completion ( ) . await ?;
16081608 let actual = store. get_bytes ( expected_hash) . await ?;
@@ -2043,8 +2043,8 @@ pub mod tests {
20432043 . await ?
20442044 . collect :: < HashSet < _ > > ( )
20452045 . await ;
2046- assert ! ( tts. contains( tt1. hash_and_format( ) ) ) ;
2047- assert ! ( tts. contains( tt2. hash_and_format( ) ) ) ;
2046+ assert ! ( tts. contains( & tt1. hash_and_format( ) ) ) ;
2047+ assert ! ( tts. contains( & tt2. hash_and_format( ) ) ) ;
20482048 drop ( batch) ;
20492049 store. sync_db ( ) . await ?;
20502050 store. wait_idle ( ) . await ?;
@@ -2055,8 +2055,8 @@ pub mod tests {
20552055 . collect :: < HashSet < _ > > ( )
20562056 . await ;
20572057 // temp tag went out of scope, so it does not work anymore
2058- assert ! ( !tts. contains( tt1. hash_and_format( ) ) ) ;
2059- assert ! ( !tts. contains( tt2. hash_and_format( ) ) ) ;
2058+ assert ! ( !tts. contains( & tt1. hash_and_format( ) ) ) ;
2059+ assert ! ( !tts. contains( & tt2. hash_and_format( ) ) ) ;
20602060 drop ( tt1) ;
20612061 drop ( tt2) ;
20622062 Ok ( ( ) )
@@ -2089,29 +2089,29 @@ pub mod tests {
20892089 let data = vec ! [ 0u8 ; size] ;
20902090 let data = Bytes :: from ( data) ;
20912091 let tt = store. add_bytes ( data. clone ( ) ) . temp_tag ( ) . await ?;
2092- data_by_hash. insert ( * tt. hash ( ) , data) ;
2092+ data_by_hash. insert ( tt. hash ( ) , data) ;
20932093 hashes. push ( tt) ;
20942094 }
20952095 store. sync_db ( ) . await ?;
20962096 for tt in & hashes {
2097- let hash = * tt. hash ( ) ;
2097+ let hash = tt. hash ( ) ;
20982098 let path = testdir. path ( ) . join ( format ! ( "{hash}.txt" ) ) ;
20992099 store. export ( hash, path) . await ?;
21002100 }
21012101 for tt in & hashes {
21022102 let hash = tt. hash ( ) ;
21032103 let data = store
2104- . export_bao ( * hash, ChunkRanges :: all ( ) )
2104+ . export_bao ( hash, ChunkRanges :: all ( ) )
21052105 . data_to_vec ( )
21062106 . await
21072107 . unwrap ( ) ;
2108- assert_eq ! ( data, data_by_hash[ hash] . to_vec( ) ) ;
2108+ assert_eq ! ( data, data_by_hash[ & hash] . to_vec( ) ) ;
21092109 let bao = store
2110- . export_bao ( * hash, ChunkRanges :: all ( ) )
2110+ . export_bao ( hash, ChunkRanges :: all ( ) )
21112111 . bao_to_vec ( )
21122112 . await
21132113 . unwrap ( ) ;
2114- bao_by_hash. insert ( * hash, bao) ;
2114+ bao_by_hash. insert ( hash, bao) ;
21152115 }
21162116 store. dump ( ) . await ?;
21172117
0 commit comments