Skip to content

Commit 9d018fb

Browse files
committed
Remove a needless mutability
1 parent 19270b4 commit 9d018fb

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
@@ -253,7 +253,7 @@ impl ResolverAstLowering {
253253
///
254254
/// The extra lifetimes that appear from the parenthesized `Fn`-trait desugaring
255255
/// should appear at the enclosing `PolyTraitRef`.
256-
fn extra_lifetime_params(&mut self, id: NodeId) -> Vec<(Ident, NodeId, LifetimeRes)> {
256+
fn extra_lifetime_params(&self, id: NodeId) -> Vec<(Ident, NodeId, LifetimeRes)> {
257257
self.extra_lifetime_params_map.get(&id).cloned().unwrap_or_default()
258258
}
259259
}

0 commit comments

Comments
 (0)