Remove a fishy Clone impl
This commit is contained in:
parent
35d06f9c74
commit
aad33198ff
4 changed files with 27 additions and 11 deletions
|
@ -481,14 +481,6 @@ impl<T: Default> Default for Lock<T> {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME: Probably a bad idea
|
||||
impl<T: Clone> Clone for Lock<T> {
|
||||
#[inline]
|
||||
fn clone(&self) -> Self {
|
||||
Lock::new(self.borrow().clone())
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
pub struct RwLock<T>(InnerRwLock<T>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue