Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Feb 21, 2024
1 parent 061008f commit 90d1b76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zenoh/src/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ pub struct QoS {
impl QoS {
/// Gets priority of the message.
pub fn priority(&self) -> Priority {
let priority = match Priority::try_from(self.inner.get_priority()) {
match Priority::try_from(self.inner.get_priority()) {
Ok(p) => p,
Err(e) => {
log::trace!(
Expand All @@ -537,8 +537,7 @@ impl QoS {
);
Priority::default()
}
};
priority
}
}

/// Gets congestion control of the message.
Expand Down

0 comments on commit 90d1b76

Please sign in to comment.