We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37e855d commit f03d1fbCopy full SHA for f03d1fb
src/syslog.rs
@@ -139,8 +139,8 @@ impl LogMask {
139
/// Returns if the mask for the specified `priority` is set.
140
pub fn contains(&self, priority: Severity) -> bool {
141
let priority = Self::of_priority(priority);
142
- let and_result = self & priority;
143
- and_result != 0
+ let and_result = *self & priority;
+ and_result.0 != 0
144
}
145
146
0 commit comments