mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
clippy: Enable non_canonical_clone_impl
rule
This commit is contained in:
parent
7669619f9a
commit
2601d19bac
4 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue