-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Objective - Shrink `bevy_utils` more. - Refs #11478 ## Solution - Removes `assert_object_safe` from `bevy_utils` by using a compile time check instead. ## Testing - CI. --- ## Migration Guide `assert_object_safe` is no longer exported by `bevy_utils`. Instead, you can write a compile time check that your trait is "dyn compatible": ```rust /// Assert MyTrait is dyn compatible const _: Option<Box<dyn MyTrait>> = None; ``` --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
- Loading branch information
1 parent
3742e62
commit b20e23d
Showing
3 changed files
with
6 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.