Skip to content

Commit

Permalink
Fix compiler error for 2024 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Jul 4, 2024
1 parent 9103204 commit 1fd6ccd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/bevy_plugin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_yarnspinner"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_plugin/src/commands/command_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ impl YarnCommands {
.add_command("wait", |In(duration): In<f32>, mut wait: ResMut<Wait>| {
wait.add(Duration::from_secs_f32(duration))
})
.add_command("stop", |_: In<()>| {
unreachable!("The stop command is a compiler builtin and is thus not callable")
.add_command("stop", |_: In<()>| -> () {
unreachable!("The stop command is a compiler builtin and is thus not callable");
});
commands
}
Expand Down

0 comments on commit 1fd6ccd

Please sign in to comment.