mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 12:58:31 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -1770,8 +1770,7 @@ where
|
||||
// reject messages claiming to be from ourselves but not locally published
|
||||
let self_published = !self.config.allow_self_origin()
|
||||
&& if let Some(own_id) = self.publish_config.get_own_id() {
|
||||
own_id != propagation_source
|
||||
&& raw_message.source.as_ref().map_or(false, |s| s == own_id)
|
||||
own_id != propagation_source && raw_message.source.as_ref() == Some(own_id)
|
||||
} else {
|
||||
self.published_message_ids.contains(msg_id)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user