Skip to content

Commit c3f5d16

Browse files
committed
import fixes
1 parent 05d8847 commit c3f5d16

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/trees.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use std::mem::MaybeUninit;
2+
use std::ops::{Deref, DerefMut};
23
use std::ptr::NonNull;
34

45
use crate::bindings as ll_bindings;
@@ -24,7 +25,6 @@ use crate::TskitTypeAccess;
2425
use crate::{tsk_id_t, tsk_size_t, TableCollection};
2526
use ll_bindings::{tsk_tree_free, tsk_treeseq_free};
2627
use mbox::MBox;
27-
use std::ptr::NonNull;
2828

2929
/// A Tree.
3030
///
@@ -765,8 +765,7 @@ pub(crate) mod test_trees {
765765
// This is a safety sticking point:
766766
// we cannot collect the iterable itself b/c
767767
// the underlying tree memory is re-used.
768-
let i = treeseq
769-
.trees();
768+
let i = treeseq.trees();
770769
let v = Vec::<Tree>::from_iter(i);
771770
assert_eq!(v.len(), 2);
772771
}

0 commit comments

Comments
 (0)