Skip to content

Commit

Permalink
Address review nit by making map_id take an FnMut.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Apr 8, 2015
1 parent c4216a5 commit 86c5faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ impl CodeExtent {

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

0 comments on commit 86c5faf

Please sign in to comment.