all: use let chains
This commit is contained in:
parent
3d5d146d65
commit
286857971a
89 changed files with 1516 additions and 1574 deletions
|
|
@ -55,11 +55,11 @@ impl JaySelectToplevelEventHandler for UsrJaySelectToplevel {
|
|||
Some(tl)
|
||||
};
|
||||
'send: {
|
||||
if self.version >= ID_SINCE {
|
||||
if let Some(tl) = tl {
|
||||
tl.owner.set(Some(slf.clone()));
|
||||
break 'send;
|
||||
}
|
||||
if self.version >= ID_SINCE
|
||||
&& let Some(tl) = tl
|
||||
{
|
||||
tl.owner.set(Some(slf.clone()));
|
||||
break 'send;
|
||||
}
|
||||
self.send(tl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue