Skip to content

Commit 771105e

Browse files
committed
Remove a needless mutability
1 parent c246363 commit 771105e

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-1
lines changed

compiler/rustc_ast_lowering/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl ResolverAstLowering {
254254
///
255255
/// The extra lifetimes that appear from the parenthesized `Fn`-trait desugaring
256256
/// should appear at the enclosing `PolyTraitRef`.
257-
fn extra_lifetime_params(&mut self, id: NodeId) -> Vec<(Ident, NodeId, LifetimeRes)> {
257+
fn extra_lifetime_params(&self, id: NodeId) -> Vec<(Ident, NodeId, LifetimeRes)> {
258258
self.extra_lifetime_params_map.get(&id).cloned().unwrap_or_default()
259259
}
260260
}

0 commit comments

Comments
 (0)