Skip to content

Conversation

greeble-dev
Copy link
Contributor

Fixes a clippy error introduced by #21338. Issue was inside a #[cfg(target_os = "windows")] block so it wasn't caught by CI.

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.

@greeble-dev greeble-dev added D-Trivial Nice and easy! A great choice to get started with Bevy A-Build-System Related to build systems or continuous integration S-Needs-Review Needs reviewer attention (from anyone!) to move forward C-Code-Quality A section of code that is hard to understand or change labels Oct 6, 2025
@mockersf mockersf enabled auto-merge October 6, 2025 10:31
@mockersf mockersf added this pull request to the merge queue Oct 6, 2025
Merged via the queue into bevyengine:main with commit 11059de Oct 6, 2025
45 checks passed
beicause pushed a commit to beicause/bevy that referenced this pull request Oct 6, 2025
Fixes a clippy error introduced by bevyengine#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`.
tigregalis pushed a commit to tigregalis/bevy that referenced this pull request Oct 7, 2025
Fixes a clippy error introduced by bevyengine#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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build-System Related to build systems or continuous integration C-Code-Quality A section of code that is hard to understand or change D-Trivial Nice and easy! A great choice to get started with Bevy S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants