@@ -1362,9 +1362,9 @@ mod tests {
13621362
13631363 #[ test]
13641364 fn test_span_exporter_immutable_reference ( ) {
1365- use std:: sync:: atomic:: { AtomicBool , Ordering } ;
13661365 use crate :: error:: OTelSdkError ;
1367-
1366+ use std:: sync:: atomic:: { AtomicBool , Ordering } ;
1367+
13681368 // Simple test exporter that demonstrates the &self pattern
13691369 #[ derive( Debug ) ]
13701370 struct TestExporter {
@@ -1377,7 +1377,7 @@ mod tests {
13771377 is_shutdown : AtomicBool :: new ( false ) ,
13781378 }
13791379 }
1380-
1380+
13811381 fn is_shutdown ( & self ) -> bool {
13821382 self . is_shutdown . load ( Ordering :: Relaxed )
13831383 }
@@ -1390,35 +1390,35 @@ mod tests {
13901390 }
13911391 Ok ( ( ) )
13921392 }
1393-
1393+
13941394 fn shutdown ( & self ) -> OTelSdkResult {
13951395 self . is_shutdown . store ( true , Ordering :: Relaxed ) ;
13961396 Ok ( ( ) )
13971397 }
1398-
1398+
13991399 fn shutdown_with_timeout ( & self , _timeout : Duration ) -> OTelSdkResult {
14001400 self . shutdown ( )
14011401 }
1402-
1402+
14031403 fn force_flush ( & self ) -> OTelSdkResult {
14041404 Ok ( ( ) )
14051405 }
14061406 }
14071407
14081408 let exporter = TestExporter :: new ( ) ;
1409-
1409+
14101410 // These methods now work with &self
14111411 assert ! ( !exporter. is_shutdown( ) ) ;
1412-
1412+
14131413 let result = exporter. shutdown ( ) ;
14141414 assert ! ( result. is_ok( ) ) ;
1415-
1415+
14161416 assert ! ( exporter. is_shutdown( ) ) ;
1417-
1417+
14181418 // Test that export fails after shutdown
14191419 let export_result = futures_executor:: block_on ( exporter. export ( vec ! [ ] ) ) ;
14201420 assert ! ( export_result. is_err( ) ) ;
1421-
1421+
14221422 // Test force_flush
14231423 let flush_result = exporter. force_flush ( ) ;
14241424 assert ! ( flush_result. is_ok( ) ) ;
0 commit comments