From e6e5e84cae6af9fb76b7de9d342184a4e26b2ea0 Mon Sep 17 00:00:00 2001 From: Sky Date: Fri, 28 Jun 2024 00:01:32 -0400 Subject: [PATCH 1/2] docs: say "includes" instead of "does include" --- core/src/time.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/time.rs b/core/src/time.rs index bc0fa3f0968d8..73c556249bedf 100644 --- a/core/src/time.rs +++ b/core/src/time.rs @@ -842,7 +842,7 @@ impl Duration { /// Returns the number of seconds contained by this `Duration` as `f64`. /// - /// The returned value does include the fractional (nanosecond) part of the duration. + /// The returned value includes the fractional (nanosecond) part of the duration. /// /// # Examples /// ``` @@ -861,7 +861,7 @@ impl Duration { /// Returns the number of seconds contained by this `Duration` as `f32`. /// - /// The returned value does include the fractional (nanosecond) part of the duration. + /// The returned value includes the fractional (nanosecond) part of the duration. /// /// # Examples /// ``` @@ -880,7 +880,7 @@ impl Duration { /// Returns the number of milliseconds contained by this `Duration` as `f64`. /// - /// The returned value does include the fractional (nanosecond) part of the duration. + /// The returned value includes the fractional (nanosecond) part of the duration. /// /// # Examples /// ``` @@ -901,7 +901,7 @@ impl Duration { /// Returns the number of milliseconds contained by this `Duration` as `f32`. /// - /// The returned value does include the fractional (nanosecond) part of the duration. + /// The returned value includes the fractional (nanosecond) part of the duration. /// /// # Examples /// ``` From 48dc678b2c61efdc1c463f56cc18cef28bc8d8d4 Mon Sep 17 00:00:00 2001 From: Sky Date: Fri, 28 Jun 2024 00:20:03 -0400 Subject: [PATCH 2/2] Remove unnecessary SeqCst in `impl fmt::Pointer for AtomicPtr` --- core/src/sync/atomic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/sync/atomic.rs b/core/src/sync/atomic.rs index 1d19c985f232b..df108f5e0e4e5 100644 --- a/core/src/sync/atomic.rs +++ b/core/src/sync/atomic.rs @@ -3766,7 +3766,7 @@ impl fmt::Debug for AtomicPtr { #[stable(feature = "atomic_pointer", since = "1.24.0")] impl fmt::Pointer for AtomicPtr { 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) } }