Skip to content

Commit 86c5faf

Browse files
committed
Address review nit by making map_id take an FnMut.
1 parent c4216a5 commit 86c5faf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/region.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ impl CodeExtent {
172172

173173
/// Maps this scope to a potentially new one according to the
174174
/// NodeId transformer `f_id`.
175-
pub fn map_id<F>(&self, f_id: F) -> CodeExtent where
176-
F: Fn(ast::NodeId) -> ast::NodeId,
175+
pub fn map_id<F>(&self, mut f_id: F) -> CodeExtent where
176+
F: FnMut(ast::NodeId) -> ast::NodeId,
177177
{
178178
match *self {
179179
CodeExtent::Misc(node_id) => CodeExtent::Misc(f_id(node_id)),

0 commit comments

Comments
 (0)