@@ -1664,7 +1664,7 @@ mod tests {
16641664 resource : Arc :: new ( Mutex :: new ( None ) ) ,
16651665 } ;
16661666 let processor = BatchLogProcessorWithAsyncRuntime :: new (
1667- Box :: new ( exporter. clone ( ) ) ,
1667+ exporter. clone ( ) ,
16681668 BatchConfig :: default ( ) ,
16691669 runtime:: Tokio ,
16701670 ) ;
@@ -1692,7 +1692,7 @@ mod tests {
16921692 . keep_records_on_shutdown ( )
16931693 . build ( ) ;
16941694 let processor = BatchLogProcessorWithAsyncRuntime :: new (
1695- Box :: new ( exporter. clone ( ) ) ,
1695+ exporter. clone ( ) ,
16961696 BatchConfig :: default ( ) ,
16971697 runtime:: Tokio ,
16981698 ) ;
@@ -1714,7 +1714,7 @@ mod tests {
17141714 async fn test_batch_log_processor_rt_shutdown_with_async_runtime_current_flavor_multi_thread ( ) {
17151715 let exporter = InMemoryLogExporterBuilder :: default ( ) . build ( ) ;
17161716 let processor = BatchLogProcessorWithAsyncRuntime :: new (
1717- Box :: new ( exporter. clone ( ) ) ,
1717+ exporter. clone ( ) ,
17181718 BatchConfig :: default ( ) ,
17191719 runtime:: Tokio ,
17201720 ) ;
@@ -1731,7 +1731,7 @@ mod tests {
17311731 {
17321732 let exporter = InMemoryLogExporterBuilder :: default ( ) . build ( ) ;
17331733 let processor = BatchLogProcessorWithAsyncRuntime :: new (
1734- Box :: new ( exporter. clone ( ) ) ,
1734+ exporter. clone ( ) ,
17351735 BatchConfig :: default ( ) ,
17361736 runtime:: TokioCurrentThread ,
17371737 ) ;
@@ -1744,7 +1744,7 @@ mod tests {
17441744 async fn test_batch_log_processor_rt_shutdown_with_async_runtime_multi_flavor_multi_thread ( ) {
17451745 let exporter = InMemoryLogExporterBuilder :: default ( ) . build ( ) ;
17461746 let processor = BatchLogProcessorWithAsyncRuntime :: new (
1747- Box :: new ( exporter. clone ( ) ) ,
1747+ exporter. clone ( ) ,
17481748 BatchConfig :: default ( ) ,
17491749 runtime:: Tokio ,
17501750 ) ;
@@ -1757,7 +1757,7 @@ mod tests {
17571757 async fn test_batch_log_processor_rt_shutdown_with_async_runtime_multi_flavor_current_thread ( ) {
17581758 let exporter = InMemoryLogExporterBuilder :: default ( ) . build ( ) ;
17591759 let processor = BatchLogProcessorWithAsyncRuntime :: new (
1760- Box :: new ( exporter. clone ( ) ) ,
1760+ exporter. clone ( ) ,
17611761 BatchConfig :: default ( ) ,
17621762 runtime:: TokioCurrentThread ,
17631763 ) ;
0 commit comments