all: add (Clone)Cell::is_some and is_none
This commit is contained in:
parent
7a67784502
commit
54d93f84da
32 changed files with 98 additions and 62 deletions
|
|
@ -30,7 +30,7 @@ impl SurfaceExt for XSurface {
|
|||
}
|
||||
|
||||
fn on_surface_destroy(&self) -> Result<(), WlSurfaceError> {
|
||||
if self.xwayland_surface.get().is_some() {
|
||||
if self.xwayland_surface.is_some() {
|
||||
return Err(WlSurfaceError::ReloObjectStillExists);
|
||||
}
|
||||
self.surface.unset_ext();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue