Skip to content

Commit b6f26a7

Browse files
committed
fmt
1 parent c79c9df commit b6f26a7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/sys/flags.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,15 +709,21 @@ impl NodeFlags {
709709
self.0
710710
}
711711

712-
pub fn contains<I>(&self, bit: I) -> bool where I: Into<Self> + Copy{
712+
pub fn contains<I>(&self, bit: I) -> bool
713+
where
714+
I: Into<Self> + Copy,
715+
{
713716
bit.into().0 == 0 || (self.0 & bit.into().0) != 0
714717
}
715718

716719
pub fn toggle(&mut self, bit: tsk_flags_t) {
717720
self.0 ^= bit
718721
}
719722

720-
pub fn remove<I>(&mut self, bit: I) where I: Into<Self> {
723+
pub fn remove<I>(&mut self, bit: I)
724+
where
725+
I: Into<Self>,
726+
{
721727
self.0 &= !bit.into().0
722728
}
723729
}

0 commit comments

Comments
 (0)