Skip to content

Commit bbd330a

Browse files
greeble-devbeicause
authored andcommitted
Fix clippy when target_os = "windows" (#21419)
Fixes a clippy error introduced by #21338. Issue was inside a `#[cfg(target_os = "windows")]` block so it wasn't caught by CI. ```rust error: this boolean expression can be simplified --> crates\bevy_winit\src\state.rs:481:16 | 481 | if !self.app_exit.is_some() | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.app_exit.is_none()` ``` Tested with Rust 1.90.0, Win10, `cargo run -p ci -- lints`, `cargo run --example window_settings`.
1 parent bad019a commit bbd330a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_winit/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ impl<M: Message> ApplicationHandler<M> for WinitAppRunnerState<M> {
478478
})
479479
}
480480

481-
if !self.app_exit.is_some()
481+
if self.app_exit.is_none()
482482
&& (self.startup_forced_updates > 0
483483
|| matches!(self.update_mode, UpdateMode::Reactive { .. })
484484
|| self.window_event_received

0 commit comments

Comments
 (0)