File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -990,9 +990,7 @@ macro_rules! atomic_int {
990
990
#[ $stable_debug]
991
991
impl fmt:: Debug for $atomic_type {
992
992
fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
993
- f. debug_tuple( stringify!( $atomic_type) )
994
- . field( & self . load( Ordering :: SeqCst ) )
995
- . finish( )
993
+ fmt:: Debug :: fmt( & self . load( Ordering :: SeqCst ) , f)
996
994
}
997
995
}
998
996
@@ -1866,15 +1864,15 @@ pub fn compiler_fence(order: Ordering) {
1866
1864
#[ stable( feature = "atomic_debug" , since = "1.3.0" ) ]
1867
1865
impl fmt:: Debug for AtomicBool {
1868
1866
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1869
- f . debug_tuple ( "AtomicBool" ) . field ( & self . load ( Ordering :: SeqCst ) ) . finish ( )
1867
+ fmt :: Debug :: fmt ( & self . load ( Ordering :: SeqCst ) , f )
1870
1868
}
1871
1869
}
1872
1870
1873
1871
#[ cfg( target_has_atomic = "ptr" ) ]
1874
1872
#[ stable( feature = "atomic_debug" , since = "1.3.0" ) ]
1875
1873
impl < T > fmt:: Debug for AtomicPtr < T > {
1876
1874
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1877
- f . debug_tuple ( "AtomicPtr" ) . field ( & self . load ( Ordering :: SeqCst ) ) . finish ( )
1875
+ fmt :: Debug :: fmt ( & self . load ( Ordering :: SeqCst ) , f )
1878
1876
}
1879
1877
}
1880
1878
You can’t perform that action at this time.
0 commit comments