@@ -46,7 +46,6 @@ macro_rules! unsafe_tsk_column_access {
4646
4747macro_rules! unsafe_tsk_ragged_column_access {
4848 ( $i: expr, $lo: expr, $hi: expr, $array: expr, $offset_array: expr, $offset_array_len: expr) => { {
49- use std:: convert:: TryFrom ;
5049 let i = crate :: SizeType :: try_from( $i) ?;
5150 if $i < $lo || i >= $hi {
5251 Err ( TskitError :: IndexError { } )
@@ -72,7 +71,6 @@ macro_rules! unsafe_tsk_ragged_column_access {
7271 } } ;
7372
7473 ( $i: expr, $lo: expr, $hi: expr, $array: expr, $offset_array: expr, $offset_array_len: expr, $output_id_type: expr) => { {
75- use std:: convert:: TryFrom ;
7674 let i = crate :: SizeType :: try_from( $i) ?;
7775 if $i < $lo || i >= $hi {
7876 Err ( TskitError :: IndexError { } )
@@ -103,7 +101,6 @@ macro_rules! unsafe_tsk_ragged_column_access {
103101#[ allow( unused_macros) ]
104102macro_rules! unsafe_tsk_ragged_char_column_access {
105103 ( $i: expr, $lo: expr, $hi: expr, $array: expr, $offset_array: expr, $offset_array_len: expr) => { {
106- use std:: convert:: TryFrom ;
107104 let i = crate :: SizeType :: try_from( $i) ?;
108105 if $i < $lo || i >= $hi {
109106 Err ( TskitError :: IndexError { } )
@@ -305,7 +302,7 @@ macro_rules! impl_id_traits {
305302 }
306303 }
307304
308- impl std :: convert :: TryFrom <$idtype> for crate :: SizeType {
305+ impl TryFrom <$idtype> for crate :: SizeType {
309306 type Error = crate :: TskitError ;
310307
311308 fn try_from( value: $idtype) -> Result <Self , Self :: Error > {
0 commit comments