@@ -11,8 +11,8 @@ use core::sync::atomic::{AtomicBool, AtomicU32, AtomicUsize, Ordering};
1111use std:: collections:: HashSet ;
1212
1313fn elapsed_secs (
14- #[ cfg( target_arch = "wasm32" ) ] _start : & ( ) ,
15- #[ cfg( not( target_arch = "wasm32" ) ) ] start : & std:: time:: Instant ,
14+ #[ cfg( target_arch = "wasm32" ) ] _start : ( ) ,
15+ #[ cfg( not( target_arch = "wasm32" ) ) ] start : std:: time:: Instant ,
1616) -> f64 {
1717 cfg_select ! {
1818 target_arch = "wasm32" => 0.0 ,
@@ -528,7 +528,7 @@ impl GcState {
528528 self . generations [ i] . count . store ( 0 , Ordering :: SeqCst ) ;
529529 }
530530
531- let duration = elapsed_secs ( & start_time) ;
531+ let duration = elapsed_secs ( start_time) ;
532532
533533 self . generations [ generation] . update_stats ( 0 , 0 , 0 , duration) ;
534534 return CollectResult {
@@ -704,7 +704,7 @@ impl GcState {
704704 self . generations [ i] . count . store ( 0 , Ordering :: SeqCst ) ;
705705 }
706706
707- let duration = elapsed_secs ( & start_time) ;
707+ let duration = elapsed_secs ( start_time) ;
708708
709709 self . generations [ generation] . update_stats ( 0 , 0 , candidates, duration) ;
710710 return CollectResult {
@@ -727,7 +727,7 @@ impl GcState {
727727 self . generations [ i] . count . store ( 0 , Ordering :: SeqCst ) ;
728728 }
729729
730- let duration = elapsed_secs ( & start_time) ;
730+ let duration = elapsed_secs ( start_time) ;
731731
732732 self . generations [ generation] . update_stats ( 0 , 0 , candidates, duration) ;
733733 return CollectResult {
@@ -953,7 +953,7 @@ impl GcState {
953953 self . generations [ i] . count . store ( 0 , Ordering :: SeqCst ) ;
954954 }
955955
956- let duration = elapsed_secs ( & start_time) ;
956+ let duration = elapsed_secs ( start_time) ;
957957
958958 self . generations [ generation] . update_stats ( collected, 0 , candidates, duration) ;
959959
0 commit comments