diff options
| author | Jonathan Reem <jonathan.reem@gmail.com> | 2016-02-05 01:19:29 -0800 |
|---|---|---|
| committer | Jonathan Reem <jonathan.reem@gmail.com> | 2016-02-05 01:19:29 -0800 |
| commit | ca72440e694910a58bb5b7d2667e3495e0dbee30 (patch) | |
| tree | 56cf3b82d4d9af8713446e7a65520a1ddefb3029 /src/libstd/sync | |
| parent | 2ad6dc2556c19f49280b561fc1f5246ff9f9d6ed (diff) | |
| download | rust-ca72440e694910a58bb5b7d2667e3495e0dbee30.tar.gz rust-ca72440e694910a58bb5b7d2667e3495e0dbee30.zip | |
Remove an unnecessary 'static bound in the impl of Debug for Mutex.
There is no reason to require T: 'static; the bound appears to be a historical artifact.
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/mutex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mutex.rs b/src/libstd/sync/mutex.rs index e83ebd10612..2cc29629f6a 100644 --- a/src/libstd/sync/mutex.rs +++ b/src/libstd/sync/mutex.rs @@ -311,7 +311,7 @@ impl<T: ?Sized> Drop for Mutex<T> { } #[stable(feature = "rust1", since = "1.0.0")] -impl<T: ?Sized + fmt::Debug + 'static> fmt::Debug for Mutex<T> { +impl<T: ?Sized + fmt::Debug> fmt::Debug for Mutex<T> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self.try_lock() { Ok(guard) => write!(f, "Mutex {{ data: {:?} }}", &*guard), |
