diff options
Diffstat (limited to 'crates/ra_hir/src/resolve.rs')
-rw-r--r-- | crates/ra_hir/src/resolve.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/resolve.rs b/crates/ra_hir/src/resolve.rs index fc981e9b3..c8be27e54 100644 --- a/crates/ra_hir/src/resolve.rs +++ b/crates/ra_hir/src/resolve.rs | |||
@@ -272,7 +272,7 @@ impl Scope { | |||
272 | }, | 272 | }, |
273 | Scope::ImplBlockScope(i) => { | 273 | Scope::ImplBlockScope(i) => { |
274 | if name.as_known_name() == Some(KnownName::SelfType) { | 274 | if name.as_known_name() == Some(KnownName::SelfType) { |
275 | PerNs::types(Resolution::SelfType(i.clone())) | 275 | PerNs::types(Resolution::SelfType(*i)) |
276 | } else { | 276 | } else { |
277 | PerNs::none() | 277 | PerNs::none() |
278 | } | 278 | } |
@@ -317,7 +317,7 @@ impl Scope { | |||
317 | } | 317 | } |
318 | } | 318 | } |
319 | Scope::ImplBlockScope(i) => { | 319 | Scope::ImplBlockScope(i) => { |
320 | f(Name::self_type(), PerNs::types(Resolution::SelfType(i.clone()))); | 320 | f(Name::self_type(), PerNs::types(Resolution::SelfType(*i))); |
321 | } | 321 | } |
322 | Scope::ExprScope(e) => { | 322 | Scope::ExprScope(e) => { |
323 | e.expr_scopes.entries(e.scope_id).iter().for_each(|e| { | 323 | e.expr_scopes.entries(e.scope_id).iter().for_each(|e| { |