Address review nit by making `map_id` take an `FnMut`.

This commit is contained in:
Felix S. Klock II 2015-04-08 13:55:01 +02:00
parent c4216a50bd
commit 86c5faf42b
1 changed files with 2 additions and 2 deletions

View File

@ -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)),