Reduce amount of monomorphizations from FnMut closures (#49453)

Replaces a bunch of `impl FnMut` parameters with `&mut dyn FnMut` for
functions where this is the sole generic parameter.
Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth authored and GitHub committed 2026-02-18 12:00:02 +01:00
1 parent a3d5f56be8
commit 2fb5628281
80 files changed
+482 -428

No files matched your search

+1 -1
View File
@@ -958,7 +958,7 @@ impl Item for CommitView {
}))))
}
fn to_item_events(event: &EditorEvent, f: impl FnMut(ItemEvent)) {
fn to_item_events(event: &EditorEvent, f: &mut dyn FnMut(ItemEvent)) {
Editor::to_item_events(event, f)
}