Skip to content

Commit 631c06f

Browse files
Bayley Fosterapekros
authored andcommitted
chore: update bevy to 0.19.0-rc.2
1 parent c42efc1 commit 631c06f

8 files changed

Lines changed: 1726 additions & 1174 deletions

File tree

Cargo.lock

Lines changed: 1713 additions & 1163 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ categories = ["command-line-interface"]
1111
keywords = ["cli", "ratatui", "terminal", "tui", "bevy"]
1212

1313
[dependencies]
14-
bevy = { version = "0.18", default-features = false }
14+
bevy = { version = "0.19.0-rc.2", default-features = false }
1515
bitflags = "2.8.0"
1616
color-eyre = "0.6.3"
1717
ratatui = { version = "0.30.0", default-features = false }
@@ -20,11 +20,13 @@ tracing = "0.1.44"
2020

2121
[dev-dependencies]
2222
rand = "0.9.3"
23-
bevy = { version = "0.18", default-features = false, features = ["bevy_state"] }
23+
bevy = { version = "0.19.0-rc.2", default-features = false, features = [
24+
"bevy_state",
25+
] }
2426
ratatui = { version = "0.30.0", default-features = false, features = [
25-
"underline-color",
26-
"layout-cache",
27-
"unstable-widget-ref",
27+
"underline-color",
28+
"layout-cache",
29+
"unstable-widget-ref",
2830
] }
2931

3032
# Enable a small amount of optimization in debug mode

examples/bevy_keys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ fn hotkeys(
148148

149149
fn keyboard_input_system(mut messages: MessageReader<KeyMessage>, mut commands: Commands) {
150150
for message in messages.read() {
151-
commands.insert_resource(LastKeypress(message.clone()));
151+
commands.insert_resource(LastKeypress(*message));
152152
}
153153
}
154154

examples/kitty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn keyboard_input_system(
6161
exit.write_default();
6262
}
6363
_ => {
64-
commands.insert_resource(LastKeypress(message.clone()));
64+
commands.insert_resource(LastKeypress(*message));
6565
}
6666
}
6767
}

src/crossterm_context/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub enum InputSet {
8383
EmitCrossterm,
8484
/// Check for emulation
8585
CheckEmulation,
86-
/// Emit the bevy messages if [crate::input_forwarding::KeyboardPlugin] has been added.
86+
/// Emit the bevy messages if [crate::translation::TranslationPlugin] has been added.
8787
EmitBevy,
8888
/// Run after all input messages are emitted.
8989
Post,

src/crossterm_context/translation/keyboard_translation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ fn crossterm_modifier_to_bevy_key(
972972

973973
fn logical_key_to_text(logical_key: &bevy::input::keyboard::Key) -> Option<String> {
974974
if let bevy::input::keyboard::Key::Character(character) = logical_key {
975-
Some(String::from(character.clone()))
975+
Some(character.to_string())
976976
} else {
977977
None
978978
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
//! # Input Forwarding
5050
//!
5151
//! The terminal input can be forwarded to the bevy input system. See the
52-
//! [input_forwarding] module documentation for details.
52+
//! [translation] module documentation for details.
5353
//!
5454
//! [Bevy]: https://bevyengine.org
5555
//! [Ratatui]: https://ratatui.rs

src/windowed_context/plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn render_terminal_to_handle(
6969
let width = softatui.backend().get_pixmap_width() as u32;
7070
let height = softatui.backend().get_pixmap_height() as u32;
7171

72-
let image = images.get_mut(&my_handle.0).expect("Image not found");
72+
let mut image = images.get_mut(&my_handle.0).expect("Image not found");
7373
if image.width() != width || image.height() != height {
7474
image.resize(Extent3d {
7575
width,

0 commit comments

Comments
 (0)