We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db205a7 commit 62980f9Copy full SHA for 62980f9
release-content/migration-guides/extract_fn_is_mut.md
@@ -0,0 +1,10 @@
1
+---
2
+title: `take_extract` now returns `dyn FnMut` instead of `dyn Fn`.
3
+pull_requests: [19926]
4
5
+
6
+Previously, `set_extract` accepted any `Fn`. Now we accept any `FnMut`. For callers of
7
+`set_extract`, there is no difference since `Fn: FnMut`.
8
9
+However, callers of `take_extract` will now be returned
10
+`Option<Box<dyn FnMut(&mut World, &mut World) + Send>>` instead.
0 commit comments