Skip to content

Commit

Permalink
Remove unnecessary SeqCst in impl fmt::Pointer for AtomicPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
Sky9x committed Jun 28, 2024
1 parent 6c38c60 commit 48dc678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3766,7 +3766,7 @@ impl<T> fmt::Debug for AtomicPtr<T> {
#[stable(feature = "atomic_pointer", since = "1.24.0")]
impl<T> fmt::Pointer for AtomicPtr<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Pointer::fmt(&self.load(Ordering::SeqCst), f)
fmt::Pointer::fmt(&self.load(Ordering::Relaxed), f)
}
}

Expand Down

0 comments on commit 48dc678

Please sign in to comment.