aboutsummaryrefslogtreecommitdiff
path: root/crates/hir/src
diff options
context:
space:
mode:
authorMaan2003 <[email protected]>2021-06-13 04:57:19 +0100
committerMaan2003 <[email protected]>2021-06-13 04:57:19 +0100
commit705f7e6e2644bf5de4255bc05ea8d9d5027c29b0 (patch)
tree1bf26189989bb871a86ec4ee612c978be5e5f883 /crates/hir/src
parent6cc6dee9e96d55dbbd8593523551a9981a691147 (diff)
clippy::clone_on_copy
Diffstat (limited to 'crates/hir/src')
-rw-r--r--crates/hir/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index f6eb23262..bd923cba8 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -452,7 +452,7 @@ impl Module {
452 } 452 }
453 453
454 pub fn visibility_of(self, db: &dyn HirDatabase, def: &ModuleDef) -> Option<Visibility> { 454 pub fn visibility_of(self, db: &dyn HirDatabase, def: &ModuleDef) -> Option<Visibility> {
455 self.id.def_map(db.upcast())[self.id.local_id].scope.visibility_of(def.clone().into()) 455 self.id.def_map(db.upcast())[self.id.local_id].scope.visibility_of((*def).into())
456 } 456 }
457 457
458 pub fn diagnostics( 458 pub fn diagnostics(