mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
clippy::clone_on_copy
This commit is contained in:
parent
6cc6dee9e9
commit
705f7e6e26
7 changed files with 6 additions and 7 deletions
|
@ -452,7 +452,7 @@ impl Module {
|
|||
}
|
||||
|
||||
pub fn visibility_of(self, db: &dyn HirDatabase, def: &ModuleDef) -> Option<Visibility> {
|
||||
self.id.def_map(db.upcast())[self.id.local_id].scope.visibility_of(def.clone().into())
|
||||
self.id.def_map(db.upcast())[self.id.local_id].scope.visibility_of((*def).into())
|
||||
}
|
||||
|
||||
pub fn diagnostics(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue