Clippy fixes
This commit is contained in:
parent
67ed81a00c
commit
63f9a713ce
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue