diff options
| author | Sky <sky@sky9.dev> | 2024-06-28 00:20:03 -0400 |
|---|---|---|
| committer | Sky <sky@sky9.dev> | 2024-06-28 00:20:35 -0400 |
| commit | df7331fcd2d2f059f98fbbf19eb2e493188e82da (patch) | |
| tree | 0fe5ac82b1bb5affbf25052d6f31eb136be842fb /library/core/src/sync | |
| parent | 9c3bc805dd9cb84019c124b9a50fdff1e62a7ec9 (diff) | |
| download | rust-df7331fcd2d2f059f98fbbf19eb2e493188e82da.tar.gz rust-df7331fcd2d2f059f98fbbf19eb2e493188e82da.zip | |
Remove unnecessary SeqCst in `impl fmt::Pointer for AtomicPtr`
Diffstat (limited to 'library/core/src/sync')
| -rw-r--r-- | library/core/src/sync/atomic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 1d19c985f23..df108f5e0e4 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -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) } } |
