Skip to content

Commit c5b70d0

Browse files
committed
Silence clippy lint and add note
1 parent 1899f82 commit c5b70d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/trees.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ use std::ptr::NonNull;
2121
/// Wrapper around `tsk_tree_t`.
2222
pub struct Tree<'treeseq> {
2323
pub(crate) inner: mbox::MBox<ll_bindings::tsk_tree_t>,
24+
// NOTE: this reference exists becaust tsk_tree_t
25+
// contains a NON-OWNING pointer to tsk_treeseq_t.
26+
// Thus, we could theoretically cause UB without
27+
// tying the rust-side object liftimes together.
28+
#[allow(dead_code)]
2429
treeseq: &'treeseq TreeSequence,
2530
api: TreeInterface,
2631
current_tree: i32,

0 commit comments

Comments
 (0)