Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 48dc678

Browse files
committedJun 28, 2024
Remove unnecessary SeqCst in impl fmt::Pointer for AtomicPtr
1 parent 6c38c60 commit 48dc678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/sync/atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3766,7 +3766,7 @@ impl<T> fmt::Debug for AtomicPtr<T> {
37663766
#[stable(feature = "atomic_pointer", since = "1.24.0")]
37673767
impl<T> fmt::Pointer for AtomicPtr<T> {
37683768
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
3769-
fmt::Pointer::fmt(&self.load(Ordering::SeqCst), f)
3769+
fmt::Pointer::fmt(&self.load(Ordering::Relaxed), f)
37703770
}
37713771
}
37723772

0 commit comments

Comments
 (0)
Failed to load comments.