Address some clippy comments

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2023-07-26 13:15:57 +02:00
parent 2c5eea29ae
commit 974f4ac007
6 changed files with 22 additions and 33 deletions
+4 -4
View File
@@ -111,16 +111,16 @@ impl SourceTable {
let source_key = SourceKey::new(prefix, plen, router_id);
match self.get(&source_key) {
Some(&entry) => {
return (!seqno.lt(&entry.seqno()))
(!seqno.lt(&entry.seqno()))
|| (seqno == entry.seqno() && metric < entry.metric())
|| metric.is_infinite();
|| metric.is_infinite()
}
None => return true,
None => true,
}
}
_ => {
error!("Error accepting update, control struct did not match update packet");
return false;
false
}
}
}