From 6753051a45e067fb8267f7ecbbf1b894558718d1 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Wed, 6 Feb 2019 15:50:26 -0500 Subject: Some clippy cleanups --- crates/ra_hir/src/expr/scope.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir/src/expr') 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 { fn add_params_bindings(&mut self, scope: ScopeId, params: &[PatId]) { let body = Arc::clone(&self.body); params - .into_iter() + .iter() .for_each(|pat| self.add_bindings(&body, scope, *pat)); } @@ -147,7 +147,7 @@ impl ScopesWithSyntaxMapping { }) } - pub fn scope_for_offset<'a>(&'a self, offset: TextUnit) -> Option { + pub fn scope_for_offset(&self, offset: TextUnit) -> Option { self.scopes .scope_for .iter() -- cgit v1.2.3