Allow for hide_titlebar config to be updated on the fly (does not wor… #235
GitHub Actions / clippy
succeeded
May 3, 2025 in 0s
clippy
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.86.0 (05f9846f8 2025-03-31)
- cargo 1.86.0 (adf9b6ad1 2025-02-28)
- clippy 0.1.86 (05f9846f89 2025-03-31)
Annotations
Check warning on line 179 in src/title/ab_glyph_renderer.rs
github-actions / clippy
this `map_or` can be simplified
warning: this `map_or` can be simplified
--> src/title/ab_glyph_renderer.rs:176:24
|
176 | if font_pref
| ________________________^
177 | | .style
178 | | .as_deref()
179 | | .map_or(false, |s| s.eq_ignore_ascii_case("bold"))
| |__________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `#[warn(clippy::unnecessary_map_or)]` on by default
help: use is_some_and instead
|
179 - .map_or(false, |s| s.eq_ignore_ascii_case("bold"))
179 + .is_some_and(|s| s.eq_ignore_ascii_case("bold"))
|
Loading