all: use let chains
This commit is contained in:
parent
3d5d146d65
commit
286857971a
89 changed files with 1516 additions and 1574 deletions
|
|
@ -260,10 +260,10 @@ impl WlSubsurface {
|
|||
fn on_desync(&self) -> Result<(), WlSurfaceError> {
|
||||
let committed = &mut *self.parent.pending.borrow_mut();
|
||||
let committed = committed.subsurfaces.get_mut(&self.unique_id);
|
||||
if let Some(ps) = committed {
|
||||
if let Some(mut state) = ps.pending.state.take() {
|
||||
self.surface.apply_state(&mut state)?;
|
||||
}
|
||||
if let Some(ps) = committed
|
||||
&& let Some(mut state) = ps.pending.state.take()
|
||||
{
|
||||
self.surface.apply_state(&mut state)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue