fix: clippy

This commit is contained in:
Nova
2022-09-25 03:44:43 -04:00
parent 69f7a432d5
commit 9dd8580271
4 changed files with 9 additions and 7 deletions

View File

@@ -45,13 +45,13 @@ impl XdgShellHandler for WaylandState {
if let Some(panel_node) = data.data_map.get::<Arc<Node>>() {
if let Some(core_surface) = data.data_map.get::<Arc<CoreSurface>>() {
let panel_item = PanelItem::from_node(panel_node);
if core_surface
let has_data = core_surface
.with_data(|data| {
data.size.x = size.w as u32;
data.size.y = size.h as u32;
})
.is_some()
{
.is_some();
if has_data {
panel_item.resize();
}
}