Skip to content

Commit 3896c60

Browse files
committed
cool
1 parent 9600555 commit 3896c60

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/sys/flags.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -730,13 +730,6 @@ impl NodeFlags {
730730
Self(self.0 | Self::IS_SAMPLE.0)
731731
}
732732

733-
/// We do not enforce valid flags in the library.
734-
/// This function will return `true` if any bits
735-
/// are set that do not correspond to allowed flags.
736-
pub fn is_valid(&self) -> bool {
737-
true
738-
}
739-
740733
/// Returns `true` if flags contains `IS_SAMPLE`,
741734
/// and `false` otherwise.
742735
pub fn is_sample(&self) -> bool {
@@ -759,12 +752,6 @@ impl NodeFlags {
759752
}
760753
}
761754

762-
impl From<tsk_flags_t> for NodeFlags {
763-
fn from(value: tsk_flags_t) -> Self {
764-
Self(value)
765-
}
766-
}
767-
768755
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
769756
#[repr(transparent)]
770757
/// Individual flags
@@ -794,7 +781,7 @@ flags_api!(IndividualTableSortOptions);
794781
flags_api!(TableIntegrityCheckFlags);
795782
flags_api!(TableOutputOptions);
796783

797-
impl_bit_ops!(NodeFlags);
784+
flags_api!(NodeFlags);
798785

799786
impl From<RawFlags> for IndividualFlags {
800787
fn from(flags: RawFlags) -> Self {

0 commit comments

Comments
 (0)