@@ -448,7 +448,7 @@ fn get_record_not_found() {
448448 let target_key = record:: Key :: from ( random_multihash ( ) ) ;
449449 let qid = swarms[ 0 ]
450450 . behaviour_mut ( )
451- . get_record ( & target_key, Quorum :: One ) ;
451+ . get_record ( target_key. clone ( ) , Quorum :: One ) ;
452452
453453 block_on ( poll_fn ( move |ctx| {
454454 for swarm in & mut swarms {
@@ -761,7 +761,7 @@ fn get_record() {
761761 swarms[ 2 ] . behaviour_mut ( ) . store . put ( record. clone ( ) ) . unwrap ( ) ;
762762 let qid = swarms[ 0 ]
763763 . behaviour_mut ( )
764- . get_record ( & record. key , Quorum :: One ) ;
764+ . get_record ( record. key . clone ( ) , Quorum :: One ) ;
765765
766766 block_on ( poll_fn ( move |ctx| {
767767 for swarm in & mut swarms {
@@ -817,7 +817,9 @@ fn get_record_many() {
817817 }
818818
819819 let quorum = Quorum :: N ( NonZeroUsize :: new ( num_results) . unwrap ( ) ) ;
820- let qid = swarms[ 0 ] . behaviour_mut ( ) . get_record ( & record. key , quorum) ;
820+ let qid = swarms[ 0 ]
821+ . behaviour_mut ( )
822+ . get_record ( record. key . clone ( ) , quorum) ;
821823
822824 block_on ( poll_fn ( move |ctx| {
823825 for swarm in & mut swarms {
@@ -1116,7 +1118,7 @@ fn disjoint_query_does_not_finish_before_all_paths_did() {
11161118 let ( mut alice, mut bob, mut trudy) = ( alice. 1 , bob. 1 , trudy. 1 ) ;
11171119
11181120 // Have `alice` query the Dht for `key` with a quorum of 1.
1119- alice. behaviour_mut ( ) . get_record ( & key, Quorum :: One ) ;
1121+ alice. behaviour_mut ( ) . get_record ( key, Quorum :: One ) ;
11201122
11211123 // The default peer timeout is 10 seconds. Choosing 1 seconds here should
11221124 // give enough head room to prevent connections to `bob` to time out.
0 commit comments