diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-02-02 12:48:12 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-02-02 12:48:12 +0100 |
| commit | 857530cef1f1419e296e5d9ad623b153c06cb3e6 (patch) | |
| tree | de94fc4c80f394a5e12c54aa23d354ec8ae90609 /src/liballoc/sync.rs | |
| parent | 95a95189570001e37712661f46a496cdedce62b3 (diff) | |
| download | rust-857530cef1f1419e296e5d9ad623b153c06cb3e6.tar.gz rust-857530cef1f1419e296e5d9ad623b153c06cb3e6.zip | |
liballoc: fix some idiom lints.
Diffstat (limited to 'src/liballoc/sync.rs')
| -rw-r--r-- | src/liballoc/sync.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index 2512e27e316..52f8879d184 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -257,7 +257,7 @@ impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Weak<U>> for Weak<T> {} #[stable(feature = "arc_weak", since = "1.4.0")] impl<T: ?Sized + fmt::Debug> fmt::Debug for Weak<T> { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "(Weak)") } } @@ -1554,21 +1554,21 @@ impl<T: ?Sized + Eq> Eq for Arc<T> {} #[stable(feature = "rust1", since = "1.0.0")] impl<T: ?Sized + fmt::Display> fmt::Display for Arc<T> { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Display::fmt(&**self, f) } } #[stable(feature = "rust1", since = "1.0.0")] impl<T: ?Sized + fmt::Debug> fmt::Debug for Arc<T> { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Debug::fmt(&**self, f) } } #[stable(feature = "rust1", since = "1.0.0")] impl<T: ?Sized> fmt::Pointer for Arc<T> { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Pointer::fmt(&(&**self as *const T), f) } } |
