@@ -217,9 +217,9 @@ pub trait Connection: Send + Sync {
217217 async fn enqueue_benchmark_job (
218218 & self ,
219219 request_tag : & str ,
220- target : & Target ,
221- backend : & CodegenBackend ,
222- profile : & Profile ,
220+ target : Target ,
221+ backend : CodegenBackend ,
222+ profile : Profile ,
223223 benchmark_set : u32 ,
224224 ) -> anyhow:: Result < ( ) > ;
225225
@@ -238,7 +238,7 @@ pub trait Connection: Send + Sync {
238238 async fn add_collector_config (
239239 & self ,
240240 collector_name : & str ,
241- target : & Target ,
241+ target : Target ,
242242 benchmark_set : u32 ,
243243 is_active : bool ,
244244 ) -> anyhow:: Result < CollectorConfig > ;
@@ -253,8 +253,8 @@ pub trait Connection: Send + Sync {
253253 async fn dequeue_benchmark_job (
254254 & self ,
255255 collector_name : & str ,
256- target : & Target ,
257- benchmark_set : & BenchmarkSet ,
256+ target : Target ,
257+ benchmark_set : BenchmarkSet ,
258258 ) -> anyhow:: Result < Option < BenchmarkJob > > ;
259259
260260 /// Try and mark the benchmark_request as completed. Will return `true` if
@@ -701,9 +701,9 @@ mod tests {
701701 let result = db
702702 . enqueue_benchmark_job (
703703 benchmark_request. tag ( ) . unwrap ( ) ,
704- & Target :: X86_64UnknownLinuxGnu ,
705- & CodegenBackend :: Llvm ,
706- & Profile :: Opt ,
704+ Target :: X86_64UnknownLinuxGnu ,
705+ CodegenBackend :: Llvm ,
706+ Profile :: Opt ,
707707 0u32 ,
708708 )
709709 . await ;
@@ -793,7 +793,7 @@ mod tests {
793793 let db = ctx. db_client ( ) . connection ( ) . await ;
794794
795795 let inserted_config = db
796- . add_collector_config ( "collector-1" , & Target :: X86_64UnknownLinuxGnu , 1 , true )
796+ . add_collector_config ( "collector-1" , Target :: X86_64UnknownLinuxGnu , 1 , true )
797797 . await
798798 . unwrap ( ) ;
799799
@@ -819,8 +819,8 @@ mod tests {
819819 let benchmark_job_result = db
820820 . dequeue_benchmark_job (
821821 "collector-1" ,
822- & Target :: X86_64UnknownLinuxGnu ,
823- & BenchmarkSet ( 420 ) ,
822+ Target :: X86_64UnknownLinuxGnu ,
823+ BenchmarkSet ( 420 ) ,
824824 )
825825 . await ;
826826
@@ -839,7 +839,7 @@ mod tests {
839839 let time = chrono:: DateTime :: from_str ( "2021-09-01T00:00:00.000Z" ) . unwrap ( ) ;
840840
841841 let insert_result = db
842- . add_collector_config ( "collector-1" , & Target :: X86_64UnknownLinuxGnu , 1 , true )
842+ . add_collector_config ( "collector-1" , Target :: X86_64UnknownLinuxGnu , 1 , true )
843843 . await ;
844844 assert ! ( insert_result. is_ok( ) ) ;
845845
@@ -857,9 +857,9 @@ mod tests {
857857 let enqueue_result = db
858858 . enqueue_benchmark_job (
859859 benchmark_request. tag ( ) . unwrap ( ) ,
860- & Target :: X86_64UnknownLinuxGnu ,
861- & CodegenBackend :: Llvm ,
862- & Profile :: Opt ,
860+ Target :: X86_64UnknownLinuxGnu ,
861+ CodegenBackend :: Llvm ,
862+ Profile :: Opt ,
863863 1u32 ,
864864 )
865865 . await ;
@@ -886,7 +886,7 @@ mod tests {
886886 ) ;
887887 assert_eq ! (
888888 benchmark_job. benchmark_set( ) ,
889- * collector_config. benchmark_set( )
889+ collector_config. benchmark_set( )
890890 ) ;
891891 assert_eq ! (
892892 benchmark_job. collector_name( ) . unwrap( ) ,
0 commit comments