Skip to content

Commit 62980f9

Browse files
committed
Add a migration guide.
1 parent db205a7 commit 62980f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)