about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJonathan Reem <jonathan.reem@gmail.com>2016-02-05 01:19:29 -0800
committerJonathan Reem <jonathan.reem@gmail.com>2016-02-05 01:19:29 -0800
commitca72440e694910a58bb5b7d2667e3495e0dbee30 (patch)
tree56cf3b82d4d9af8713446e7a65520a1ddefb3029 /src/libstd
parent2ad6dc2556c19f49280b561fc1f5246ff9f9d6ed (diff)
downloadrust-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')
-rw-r--r--src/libstd/sync/mutex.rs2
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),