1
Fork 0

Remove a fishy Clone impl

This commit is contained in:
Oli Scherer 2023-03-14 11:30:23 +00:00
parent 35d06f9c74
commit aad33198ff
4 changed files with 27 additions and 11 deletions

View file

@ -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>);