diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-23 19:47:14 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-23 19:47:14 +0100 |
commit | c12a713739e30019497ab0f5e7bfa776122bfc6d (patch) | |
tree | 87e32301e1507a677840066c1547d86fd21e0460 /crates/ra_hir/src/code_model.rs | |
parent | a745afcc36ef273eb44bc9f71a40d9948d7309b0 (diff) | |
parent | 13d7fc1620c7af448c9f234f806f4aee342b3948 (diff) |
Merge #1898
1898: Drive by lints r=kjeremy a=kjeremy
Co-authored-by: kjeremy <[email protected]>
Co-authored-by: Jeremy Kolb <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 28002f740..12399c6ac 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -749,7 +749,7 @@ impl Const { | |||
749 | db.const_data(self) | 749 | db.const_data(self) |
750 | } | 750 | } |
751 | 751 | ||
752 | pub fn name(&self, db: &impl HirDatabase) -> Option<Name> { | 752 | pub fn name(self, db: &impl HirDatabase) -> Option<Name> { |
753 | self.data(db).name().cloned() | 753 | self.data(db).name().cloned() |
754 | } | 754 | } |
755 | 755 | ||