Skip to content

Commit

Permalink
Merge pull request #293 from serpilliere/fix_clippy
Browse files Browse the repository at this point in the history
Fix clippy
  • Loading branch information
serpilliere authored May 22, 2024
2 parents a0c404d + f59efb7 commit c7ec05c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sanzu/src/server_x11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1052,8 +1052,8 @@ fn create_area(server: &mut ServerX11, root: Window, window: Window) -> bool {
if let Ok(area) = init_area(&server.conn, root, window, &server.atoms) {
// find first free id, insert area
for index in 0.. {
if server.areas.get(&index).is_none() {
server.areas.insert(index, area);
if let std::collections::hash_map::Entry::Vacant(e) = server.areas.entry(index) {
e.insert(area);
return true;
}
}
Expand Down

0 comments on commit c7ec05c

Please sign in to comment.