Skip to content

Commit

Permalink
I'm sorry Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Sep 5, 2024
1 parent 3e01601 commit 16b5b09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commons/zenoh-protocol/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,10 @@ impl Reliability {

/// Returns `true` is `self` implies `other`.
pub fn implies(self, other: Self) -> bool {
match (self, other) {
(Reliability::Reliable, Reliability::BestEffort) => false,
_ => true,
}
!matches!(
(self, other),
(Reliability::Reliable, Reliability::BestEffort)
)
}

#[cfg(feature = "test")]
Expand Down

0 comments on commit 16b5b09

Please sign in to comment.