Drive by lints

This commit is contained in:
kjeremy 2019-09-23 14:31:30 -04:00
parent 5063274959
commit 1808175f98
4 changed files with 4 additions and 4 deletions

View file

@ -749,7 +749,7 @@ impl Const {
db.const_data(self)
}
pub fn name(&self, db: &impl HirDatabase) -> Option<Name> {
pub fn name(self, db: &impl HirDatabase) -> Option<Name> {
self.data(db).name().cloned()
}