all: use let chains
This commit is contained in:
parent
3d5d146d65
commit
286857971a
89 changed files with 1516 additions and 1574 deletions
|
|
@ -45,11 +45,11 @@ impl TlmMatchClient {
|
|||
}
|
||||
|
||||
pub fn handle(&self, node: &ToplevelData) {
|
||||
if let Some(client) = &node.client {
|
||||
if self.node.get(client) {
|
||||
let data = self.downstream.get_or_create(node);
|
||||
self.downstream.update_matched(node, data, true, false);
|
||||
}
|
||||
if let Some(client) = &node.client
|
||||
&& self.node.get(client)
|
||||
{
|
||||
let data = self.downstream.get_or_create(node);
|
||||
self.downstream.update_matched(node, data, true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue