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
|
|
@ -207,7 +207,7 @@ impl WlBuffer {
|
|||
}
|
||||
}
|
||||
WlBufferStorage::Dmabuf(img) => {
|
||||
if self.texture.get().is_none() {
|
||||
if self.texture.is_none() {
|
||||
self.texture.set(Some(img.clone().to_texture()?));
|
||||
}
|
||||
}
|
||||
|
|
@ -226,7 +226,7 @@ impl WlBuffer {
|
|||
// nothing
|
||||
}
|
||||
WlBufferStorage::Dmabuf(img) => {
|
||||
if self.famebuffer.get().is_none() {
|
||||
if self.famebuffer.is_none() {
|
||||
self.famebuffer.set(Some(img.clone().to_framebuffer()?));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue