Skip to content

Commit

Permalink
chore: Apply Clippy lints from Rust 1.76 (default features)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Feb 27, 2024
1 parent 01233ed commit b418ce0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions plugins/zenoh-backend-traits/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ impl<S: Into<String> + AsRef<str>, V: AsObject> TryFrom<(S, &V)> for PluginConfi
rest: value
.into_iter()
.filter(|&(k, _v)| {
(!["__required__", "backend_search_dirs", "volumes", "storages"]
.contains(&k.as_str()))
!["__required__", "backend_search_dirs", "volumes", "storages"]
.contains(&k.as_str())
})
.map(|(k, v)| (k.clone(), v.clone()))
.collect(),
Expand Down
4 changes: 2 additions & 2 deletions zenoh/src/net/routing/hat/linkstate_peer/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,12 +774,12 @@ impl Network {
.graph
.node_indices()
.filter(|&idx| {
(self.full_linkstate
self.full_linkstate
|| self.gossip_multihop
|| self.links.values().any(|link| link.zid == zid)
|| (self.router_peers_failover_brokering
&& idx == self.idx
&& whatami == WhatAmI::Router))
&& whatami == WhatAmI::Router)
})
.map(|idx| {
(
Expand Down
4 changes: 2 additions & 2 deletions zenoh/src/net/routing/hat/p2p_peer/gossip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,11 +510,11 @@ impl Network {
.graph
.node_indices()
.filter(|&idx| {
(self.gossip_multihop
self.gossip_multihop
|| self.links.values().any(|link| link.zid == zid)
|| (self.router_peers_failover_brokering
&& idx == self.idx
&& whatami == WhatAmI::Router))
&& whatami == WhatAmI::Router)
})
.map(|idx| {
(
Expand Down
4 changes: 2 additions & 2 deletions zenoh/src/net/routing/hat/router/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,12 +779,12 @@ impl Network {
.graph
.node_indices()
.filter(|&idx| {
(self.full_linkstate
self.full_linkstate
|| self.gossip_multihop
|| self.links.values().any(|link| link.zid == zid)
|| (self.router_peers_failover_brokering
&& idx == self.idx
&& whatami == WhatAmI::Router))
&& whatami == WhatAmI::Router)
})
.map(|idx| {
(
Expand Down

0 comments on commit b418ce0

Please sign in to comment.