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.
This commit is contained in:
parent
2ad6dc2556
commit
ca72440e69
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ impl<T: ?Sized> Drop for Mutex<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[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 {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
match self.try_lock() {
|
match self.try_lock() {
|
||||||
Ok(guard) => write!(f, "Mutex {{ data: {:?} }}", &*guard),
|
Ok(guard) => write!(f, "Mutex {{ data: {:?} }}", &*guard),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue