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
|
|
@ -168,7 +168,7 @@ impl UsrJayRenderCtxOwner for PortalDisplay {
|
|||
self.render_ctx.set(Some(ctx));
|
||||
}
|
||||
}
|
||||
if self.render_ctx.get().is_none() {
|
||||
if self.render_ctx.is_none() {
|
||||
let drm = Drm::open_existing(fd);
|
||||
let ctx =
|
||||
match create_gfx_context(&self.state.eng, &self.state.ring, &drm, GfxApi::OpenGl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue