Skip to content

Commit

Permalink
Fix clippy lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
brightly-salty committed Dec 19, 2020
1 parent ba144b7 commit 2ee19a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Binary file added .DS_Store
Binary file not shown.
18 changes: 10 additions & 8 deletions src/window/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,16 @@ impl<F: Frame + 'static> Window<F> {
// Check whether we should save old size for later restoration.
let should_stash_size = states
.iter()
.find(|s| match *s {
State::Maximized
| State::Fullscreen
| State::TiledTop
| State::TiledRight
| State::TiledBottom
| State::TiledLeft => true,
_ => false,
.find(|s| {
matches!(
*s,
State::Maximized
| State::Fullscreen
| State::TiledTop
| State::TiledRight
| State::TiledBottom
| State::TiledLeft
)
})
.map(|_| true)
.unwrap_or(false);
Expand Down

0 comments on commit 2ee19a5

Please sign in to comment.