1- use crate :: bindings;
1+ use super :: bindings;
22
33use super :: bindings:: tsk_id_t;
44use super :: bindings:: tsk_size_t;
@@ -23,14 +23,14 @@ pub struct LLTree<'treeseq> {
2323
2424impl < ' treeseq > LLTree < ' treeseq > {
2525 pub fn new ( treeseq : & ' treeseq TreeSequence , flags : TreeFlags ) -> Result < Self , TskitError > {
26- let mut inner = TskBox :: new ( |x : * mut super :: bindings:: tsk_tree_t | unsafe {
27- super :: bindings:: tsk_tree_init ( x, treeseq. as_ref ( ) , flags. bits ( ) )
26+ let mut inner = TskBox :: new ( |x : * mut bindings:: tsk_tree_t | unsafe {
27+ bindings:: tsk_tree_init ( x, treeseq. as_ref ( ) , flags. bits ( ) )
2828 } ) ?;
2929 // Gotta ask Jerome about this one--why isn't this handled in tsk_tree_init??
3030 if !flags. contains ( TreeFlags :: NO_SAMPLE_COUNTS ) {
3131 // SAFETY: nobody is null here.
3232 let code = unsafe {
33- super :: bindings:: tsk_tree_set_tracked_samples (
33+ bindings:: tsk_tree_set_tracked_samples (
3434 inner. as_mut ( ) ,
3535 treeseq. num_samples ( ) . into ( ) ,
3636 ( inner. as_mut ( ) ) . samples ,
@@ -119,9 +119,8 @@ impl<'treeseq> LLTree<'treeseq> {
119119 let np: * mut tsk_size_t = & mut n;
120120 assert ! ( !self . as_ptr( ) . is_null( ) ) ;
121121 // SAFETY: internal pointer not null and is initialized.
122- let code = unsafe {
123- super :: bindings:: tsk_tree_get_num_tracked_samples ( self . as_ptr ( ) , u. into ( ) , np)
124- } ;
122+ let code =
123+ unsafe { bindings:: tsk_tree_get_num_tracked_samples ( self . as_ptr ( ) , u. into ( ) , np) } ;
125124 handle_tsk_return_value ! ( code, n. into( ) )
126125 }
127126}
0 commit comments