Skip to content

Commit 04da9c5

Browse files
committed
some
1 parent ae50c58 commit 04da9c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/node_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ impl NodeTable {
647647
/// of all nodes for which [`crate::NodeFlags::is_sample`]
648648
/// is `true`.
649649
pub fn samples_as_vector(&self) -> Vec<NodeId> {
650-
self.create_node_id_vector(|row| row.flags.contains(NodeFlags::new_sample()))
650+
self.create_node_id_vector(|row| row.flags.contains(NodeFlags::IS_SAMPLE))
651651
}
652652

653653
/// Obtain a vector containing the indexes ("ids") of all nodes

src/sys/flags.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,9 @@ pub struct NodeFlags(tsk_flags_t);
673673

674674
impl NodeFlags {
675675
/// Default (empty)
676-
const NONE: tsk_flags_t = 0;
676+
pub const NONE: tsk_flags_t = 0;
677677
/// Node is a sample
678-
const IS_SAMPLE: tsk_flags_t = ll_bindings::TSK_NODE_IS_SAMPLE;
678+
pub const IS_SAMPLE: tsk_flags_t = ll_bindings::TSK_NODE_IS_SAMPLE;
679679

680680
/// Create a new flags instance with `IS_SAMPLE` set.
681681
pub fn new_sample() -> Self {

0 commit comments

Comments
 (0)