From 63f9a713cebb22e57fe47f98df3bec9e145c4c90 Mon Sep 17 00:00:00 2001 From: Poly Date: Sun, 17 Oct 2021 20:15:16 +0200 Subject: [PATCH] Clippy fixes --- src/wayland/shell/xdg/decoration.rs | 2 +- src/wayland/shell/xdg/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/shell/xdg/decoration.rs b/src/wayland/shell/xdg/decoration.rs index 0a4e8f8..2ef45b3 100644 --- a/src/wayland/shell/xdg/decoration.rs +++ b/src/wayland/shell/xdg/decoration.rs @@ -91,7 +91,7 @@ where if data.decoration.borrow().is_none() { *data.decoration.borrow_mut() = Some(id.deref().clone()); } else { - use wayland_protocols::unstable::xdg_decoration::v1::server::zxdg_toplevel_decoration_v1::Error; + use wayland_protocols::unstable::xdg_decoration::v1::server::zxdg_toplevel_decoration_v1::Error; id.as_ref().post_error(Error::AlreadyConstructed as u32, "toplevel decoration is already constructed".to_string()); } diff --git a/src/wayland/shell/xdg/mod.rs b/src/wayland/shell/xdg/mod.rs index e29a826..4a0205c 100644 --- a/src/wayland/shell/xdg/mod.rs +++ b/src/wayland/shell/xdg/mod.rs @@ -998,7 +998,7 @@ impl ToplevelSurface { .unwrap() .lock() .unwrap(); - attributes.current.decoration_mode.clone() + attributes.current.decoration_mode }) .unwrap_or(None);