Skip to content

Commit f03d1fb

Browse files
committed
fix compile
Signed-off-by: tison <[email protected]>
1 parent 37e855d commit f03d1fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/syslog.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ impl LogMask {
139139
/// Returns if the mask for the specified `priority` is set.
140140
pub fn contains(&self, priority: Severity) -> bool {
141141
let priority = Self::of_priority(priority);
142-
let and_result = self & priority;
143-
and_result != 0
142+
let and_result = *self & priority;
143+
and_result.0 != 0
144144
}
145145
}
146146

0 commit comments

Comments
 (0)