Some clippy cleanups

This commit is contained in:
kjeremy 2019-02-06 15:50:26 -05:00
parent c1e10a24fa
commit 6753051a45
15 changed files with 49 additions and 55 deletions

View file

@ -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<ScopeId> {
pub fn scope_for_offset(&self, offset: TextUnit) -> Option<ScopeId> {
self.scopes
.scope_for
.iter()