From ca72440e694910a58bb5b7d2667e3495e0dbee30 Mon Sep 17 00:00:00 2001 From: Jonathan Reem Date: Fri, 5 Feb 2016 01:19:29 -0800 Subject: [PATCH] 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. --- src/libstd/sync/mutex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 Drop for Mutex { } #[stable(feature = "rust1", since = "1.0.0")] -impl fmt::Debug for Mutex { +impl fmt::Debug for Mutex { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self.try_lock() { Ok(guard) => write!(f, "Mutex {{ data: {:?} }}", &*guard),