Skip to content

Commit df11942

Browse files
committed
change for_each_module's parameter to FnMut
Signed-off-by: Miguel Guarniz <[email protected]>
1 parent cad1fd2 commit df11942

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/hir/map

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/hir/map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ impl<'hir> Map<'hir> {
672672
}
673673
}
674674

675-
pub fn for_each_module(self, f: impl Fn(LocalDefId)) {
675+
pub fn for_each_module(self, mut f: impl FnMut(LocalDefId)) {
676676
let crate_items = self.tcx.hir_crate_items(());
677677
for module in crate_items.submodules.iter() {
678678
f(*module)

0 commit comments

Comments
 (0)