1
Fork 0

Remove unnecessary SeqCst in impl fmt::Pointer for AtomicPtr

This commit is contained in:
Sky 2024-06-28 00:20:03 -04:00
parent 9c3bc805dd
commit df7331fcd2
No known key found for this signature in database
GPG key ID: EED1A7AF86ACBCEF

View file

@ -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)
}
}