提交 ca72440e 编写于 作者: J Jonathan Reem

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.
上级 2ad6dc25
......@@ -311,7 +311,7 @@ fn drop(&mut self) {
}
#[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),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册