Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Jan 12, 2025
1 parent 37e855d commit f03d1fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/syslog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ impl LogMask {
/// Returns if the mask for the specified `priority` is set.
pub fn contains(&self, priority: Severity) -> bool {
let priority = Self::of_priority(priority);
let and_result = self & priority;
and_result != 0
let and_result = *self & priority;
and_result.0 != 0
}
}

Expand Down

0 comments on commit f03d1fb

Please sign in to comment.