Clippy fixes

This commit is contained in:
Poly 2021-10-17 20:15:16 +02:00 committed by Victor Berger
parent 67ed81a00c
commit 63f9a713ce
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ where
if data.decoration.borrow().is_none() { if data.decoration.borrow().is_none() {
*data.decoration.borrow_mut() = Some(id.deref().clone()); *data.decoration.borrow_mut() = Some(id.deref().clone());
} else { } 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()); id.as_ref().post_error(Error::AlreadyConstructed as u32, "toplevel decoration is already constructed".to_string());
} }

View File

@ -998,7 +998,7 @@ impl ToplevelSurface {
.unwrap() .unwrap()
.lock() .lock()
.unwrap(); .unwrap();
attributes.current.decoration_mode.clone() attributes.current.decoration_mode
}) })
.unwrap_or(None); .unwrap_or(None);