all: use let chains
This commit is contained in:
parent
3d5d146d65
commit
286857971a
89 changed files with 1516 additions and 1574 deletions
|
|
@ -59,10 +59,10 @@ impl SurfaceExt for XSurface {
|
|||
}
|
||||
|
||||
fn focus_node(&self) -> Option<Rc<dyn Node>> {
|
||||
if let Some(xwindow) = self.xwindow.get() {
|
||||
if xwindow.tl_accepts_keyboard_focus() {
|
||||
return Some(xwindow.x.surface.clone());
|
||||
}
|
||||
if let Some(xwindow) = self.xwindow.get()
|
||||
&& xwindow.tl_accepts_keyboard_focus()
|
||||
{
|
||||
return Some(xwindow.x.surface.clone());
|
||||
}
|
||||
None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue