Skip to content

Commit

Permalink
chore: cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Aug 6, 2024
1 parent 6dfca0b commit 1ebf411
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions layershellev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1845,10 +1845,9 @@ impl<T: Debug + 'static, INFO: 'static + Clone> WindowState<T, INFO> {
};
self.units[index].layer_shell.destroy();
self.units[index].wl_surface.destroy();
self.units[index]
if let Some(buffer) = self.units[index]
.buffer
.as_ref()
.map(|buffer| buffer.destroy());
.as_ref() { buffer.destroy() }
self.units.remove(index);
}
_ => {}
Expand Down

0 comments on commit 1ebf411

Please sign in to comment.