diff options
Diffstat (limited to 'crates/ra_hir/src/expr')
-rw-r--r-- | crates/ra_hir/src/expr/scope.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/expr/scope.rs b/crates/ra_hir/src/expr/scope.rs index 9202e3671..368994bf7 100644 --- a/crates/ra_hir/src/expr/scope.rs +++ b/crates/ra_hir/src/expr/scope.rs | |||
@@ -105,7 +105,7 @@ impl ExprScopes { | |||
105 | fn add_params_bindings(&mut self, scope: ScopeId, params: &[PatId]) { | 105 | fn add_params_bindings(&mut self, scope: ScopeId, params: &[PatId]) { |
106 | let body = Arc::clone(&self.body); | 106 | let body = Arc::clone(&self.body); |
107 | params | 107 | params |
108 | .into_iter() | 108 | .iter() |
109 | .for_each(|pat| self.add_bindings(&body, scope, *pat)); | 109 | .for_each(|pat| self.add_bindings(&body, scope, *pat)); |
110 | } | 110 | } |
111 | 111 | ||
@@ -147,7 +147,7 @@ impl ScopesWithSyntaxMapping { | |||
147 | }) | 147 | }) |
148 | } | 148 | } |
149 | 149 | ||
150 | pub fn scope_for_offset<'a>(&'a self, offset: TextUnit) -> Option<ScopeId> { | 150 | pub fn scope_for_offset(&self, offset: TextUnit) -> Option<ScopeId> { |
151 | self.scopes | 151 | self.scopes |
152 | .scope_for | 152 | .scope_for |
153 | .iter() | 153 | .iter() |