Skip to content

Commit d2dba34

Browse files
committed
change with_error_handling to return impl Command
1 parent 07f75e6 commit d2dba34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub trait Command<Marker = ()>: Send + 'static {
8484
fn with_error_handling(
8585
self,
8686
error_handler: Option<fn(&mut World, CommandError)>,
87-
) -> impl FnOnce(&mut World) + Send + 'static
87+
) -> impl Command
8888
where
8989
Self: Sized,
9090
{

0 commit comments

Comments
 (0)