clippy: Enable non_canonical_clone_impl rule

This commit is contained in:
Tetsuharu Ohzeki 2024-02-09 22:37:42 +09:00
parent 7669619f9a
commit 2601d19bac
4 changed files with 4 additions and 5 deletions

View file

@ -219,7 +219,7 @@ pub struct ItemLoc<N: ItemTreeModItemNode> {
impl<N: ItemTreeModItemNode> Clone for ItemLoc<N> {
fn clone(&self) -> Self {
Self { container: self.container, id: self.id }
*self
}
}
@ -248,7 +248,7 @@ pub struct AssocItemLoc<N: ItemTreeModItemNode> {
impl<N: ItemTreeModItemNode> Clone for AssocItemLoc<N> {
fn clone(&self) -> Self {
Self { container: self.container, id: self.id }
*self
}
}