Skip to content

Commit 141b5fa

Browse files
committed
make CommandError non_exhaustive
1 parent e49a67a commit 141b5fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/bevy_ecs/src/system/commands/fallible.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::fmt::Debug;
55

66
/// The error struct provided to command error handlers.
77
/// This contains both the error, and a mutable reference to [`World`].
8+
#[non_exhaustive]
89
pub struct CommandError<'a, C: FallibleCommand> {
910
pub error: C::Error,
1011
pub world: &'a mut World,

0 commit comments

Comments
 (0)