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
|
|
@ -29,7 +29,7 @@ impl WpFractionalScaleV1 {
|
|||
}
|
||||
|
||||
pub fn install(self: &Rc<Self>) -> Result<(), WpFractionalScaleError> {
|
||||
if self.surface.fractional_scale.get().is_some() {
|
||||
if self.surface.fractional_scale.is_some() {
|
||||
return Err(WpFractionalScaleError::Exists);
|
||||
}
|
||||
self.surface.fractional_scale.set(Some(self.clone()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue