@@ -46,7 +46,6 @@ macro_rules! unsafe_tsk_column_access {
46
46
47
47
macro_rules! unsafe_tsk_ragged_column_access {
48
48
( $i: expr, $lo: expr, $hi: expr, $array: expr, $offset_array: expr, $offset_array_len: expr) => { {
49
- use std:: convert:: TryFrom ;
50
49
let i = crate :: SizeType :: try_from( $i) ?;
51
50
if $i < $lo || i >= $hi {
52
51
Err ( TskitError :: IndexError { } )
@@ -72,7 +71,6 @@ macro_rules! unsafe_tsk_ragged_column_access {
72
71
} } ;
73
72
74
73
( $i: expr, $lo: expr, $hi: expr, $array: expr, $offset_array: expr, $offset_array_len: expr, $output_id_type: expr) => { {
75
- use std:: convert:: TryFrom ;
76
74
let i = crate :: SizeType :: try_from( $i) ?;
77
75
if $i < $lo || i >= $hi {
78
76
Err ( TskitError :: IndexError { } )
@@ -103,7 +101,6 @@ macro_rules! unsafe_tsk_ragged_column_access {
103
101
#[ allow( unused_macros) ]
104
102
macro_rules! unsafe_tsk_ragged_char_column_access {
105
103
( $i: expr, $lo: expr, $hi: expr, $array: expr, $offset_array: expr, $offset_array_len: expr) => { {
106
- use std:: convert:: TryFrom ;
107
104
let i = crate :: SizeType :: try_from( $i) ?;
108
105
if $i < $lo || i >= $hi {
109
106
Err ( TskitError :: IndexError { } )
@@ -305,7 +302,7 @@ macro_rules! impl_id_traits {
305
302
}
306
303
}
307
304
308
- impl std :: convert :: TryFrom <$idtype> for crate :: SizeType {
305
+ impl TryFrom <$idtype> for crate :: SizeType {
309
306
type Error = crate :: TskitError ;
310
307
311
308
fn try_from( value: $idtype) -> Result <Self , Self :: Error > {
0 commit comments