Chore: Apply clippy map transformations
Convert `.map().unwrap_or()` to `.map_or()` and similar transformations.
This commit is contained in:
parent
4613eb26cb
commit
c997aad85d
7 changed files with 10 additions and 15 deletions
|
|
@ -200,8 +200,10 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
viewport.scale_factor(),
|
||||
)
|
||||
})
|
||||
.map(mouse::Cursor::Available)
|
||||
.unwrap_or(mouse::Cursor::Unavailable),
|
||||
.map_or(
|
||||
mouse::Cursor::Unavailable,
|
||||
mouse::Cursor::Available,
|
||||
),
|
||||
&mut renderer,
|
||||
&Theme::Dark,
|
||||
&renderer::Style {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue