mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-14 04:56:49 +00:00
change for_each_module's parameter to FnMut
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
parent
cad1fd2f16
commit
df119428a2
@ -672,7 +672,7 @@ impl<'hir> Map<'hir> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn for_each_module(self, f: impl Fn(LocalDefId)) {
|
||||
pub fn for_each_module(self, mut f: impl FnMut(LocalDefId)) {
|
||||
let crate_items = self.tcx.hir_crate_items(());
|
||||
for module in crate_items.submodules.iter() {
|
||||
f(*module)
|
||||
|
Loading…
Reference in New Issue
Block a user