Revert "Chore: Apply clippy map transformations"
This reverts commit c997aad85d.
This commit is contained in:
parent
76873921af
commit
b277625546
7 changed files with 15 additions and 10 deletions
|
|
@ -97,7 +97,8 @@ where
|
|||
self.viewport.scale_factor(),
|
||||
)
|
||||
})
|
||||
.map_or(mouse::Cursor::Unavailable, mouse::Cursor::Available)
|
||||
.map(mouse::Cursor::Available)
|
||||
.unwrap_or(mouse::Cursor::Unavailable)
|
||||
}
|
||||
|
||||
/// Returns the current keyboard modifiers of the [`State`].
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@ impl Clipboard {
|
|||
pub fn connect(window: &winit::window::Window) -> Clipboard {
|
||||
let state = window_clipboard::Clipboard::connect(window)
|
||||
.ok()
|
||||
.map_or(State::Unavailable, State::Connected);
|
||||
.map(State::Connected)
|
||||
.unwrap_or(State::Unavailable);
|
||||
|
||||
Clipboard { state }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue