@@ -118,7 +118,7 @@ impl<T: LogExporter> LogProcessor for SimpleLogProcessor<T> {
118118 . and_then ( |exporter| {
119119 let log_tuple = & [ ( record as & LogRecord , instrumentation) ] ;
120120 let log_batch = LogBatch :: new ( log_tuple) ;
121- futures_executor:: block_on ( exporter. export ( & log_batch) )
121+ futures_executor:: block_on ( exporter. export ( log_batch) )
122122 } ) ;
123123 // Handle errors with specific static names
124124 match result {
@@ -447,7 +447,7 @@ where
447447 . map ( |log_data| ( & log_data. 0 , & log_data. 1 ) )
448448 . collect ( ) ;
449449 let log_batch = LogBatch :: new ( log_vec. as_slice ( ) ) ;
450- let export = exporter. export ( & log_batch) ;
450+ let export = exporter. export ( log_batch) ;
451451 let export_result = futures_executor:: block_on ( export) ;
452452
453453 match export_result {
@@ -717,7 +717,7 @@ where
717717 . map ( |log_data| ( & log_data. 0 , & log_data. 1 ) )
718718 . collect ( ) ;
719719 let log_batch = LogBatch :: new ( log_vec. as_slice ( ) ) ;
720- let export = exporter. export ( & log_batch) ;
720+ let export = exporter. export ( log_batch) ;
721721 let timeout = runtime. delay ( time_out) ;
722722 pin_mut ! ( export) ;
723723 pin_mut ! ( timeout) ;
@@ -937,10 +937,10 @@ mod tests {
937937
938938 impl LogExporter for MockLogExporter {
939939 #[ allow( clippy:: manual_async_fn) ]
940- fn export < ' a > (
941- & ' a self ,
942- _batch : & ' a LogBatch < ' a > ,
943- ) -> impl std:: future:: Future < Output = LogResult < ( ) > > + Send + ' a {
940+ fn export (
941+ & self ,
942+ _batch : LogBatch < ' _ > ,
943+ ) -> impl std:: future:: Future < Output = LogResult < ( ) > > + Send {
944944 async { Ok ( ( ) ) }
945945 }
946946
@@ -1443,10 +1443,10 @@ mod tests {
14431443
14441444 impl LogExporter for LogExporterThatRequiresTokio {
14451445 #[ allow( clippy:: manual_async_fn) ]
1446- fn export < ' a > (
1447- & ' a self ,
1448- batch : & ' a LogBatch < ' a > ,
1449- ) -> impl std:: future:: Future < Output = LogResult < ( ) > > + Send + ' a {
1446+ fn export (
1447+ & self ,
1448+ batch : LogBatch < ' _ > ,
1449+ ) -> impl std:: future:: Future < Output = LogResult < ( ) > > + Send {
14501450 // Simulate minimal dependency on tokio by sleeping asynchronously for a short duration
14511451 async move {
14521452 tokio:: time:: sleep ( Duration :: from_millis ( 50 ) ) . await ;
0 commit comments