@@ -1397,8 +1397,8 @@ mod test {
1397
1397
// should probably test against what C thinks is going on :)
1398
1398
let input = unsafe {
1399
1399
std:: slice:: from_raw_parts (
1400
- ( * tables. inner ) . indexes . edge_insertion_order ,
1401
- ( * tables. inner ) . indexes . num_edges as usize ,
1400
+ tables. inner . indexes . edge_insertion_order ,
1401
+ tables. inner . indexes . num_edges as usize ,
1402
1402
)
1403
1403
} ;
1404
1404
@@ -1414,8 +1414,8 @@ mod test {
1414
1414
1415
1415
let output = unsafe {
1416
1416
std:: slice:: from_raw_parts (
1417
- ( * tables. inner ) . indexes . edge_removal_order ,
1418
- ( * tables. inner ) . indexes . num_edges as usize ,
1417
+ tables. inner . indexes . edge_removal_order ,
1418
+ tables. inner . indexes . num_edges as usize ,
1419
1419
)
1420
1420
} ;
1421
1421
assert ! ( !output. is_empty( ) ) ;
@@ -1692,7 +1692,7 @@ mod test {
1692
1692
let tables2 = TableCollection :: new_from_file ( treefile) . unwrap ( ) ;
1693
1693
assert ! ( tables. equals( & tables2, TableEqualityOptions :: default ( ) ) ) ;
1694
1694
1695
- std:: fs:: remove_file ( & treefile) . unwrap ( ) ;
1695
+ std:: fs:: remove_file ( treefile) . unwrap ( ) ;
1696
1696
}
1697
1697
1698
1698
#[ test]
@@ -1893,7 +1893,7 @@ mod test_adding_individual {
1893
1893
#[ test]
1894
1894
fn test_adding_individual_without_metadata ( ) {
1895
1895
let mut tables = make_empty_table_collection ( 10. ) ;
1896
- match tables. add_individual ( 0 , & [ 0. , 0. , 0. ] , & [ IndividualId :: NULL , IndividualId :: NULL ] ) {
1896
+ match tables. add_individual ( 0 , [ 0. , 0. , 0. ] , [ IndividualId :: NULL , IndividualId :: NULL ] ) {
1897
1897
Ok ( IndividualId ( 0 ) ) => ( ) ,
1898
1898
_ => panic ! ( "Expected NodeId(0)" ) ,
1899
1899
} ;
@@ -1917,7 +1917,7 @@ mod test_adding_individual {
1917
1917
assert ! ( row. location. is_none( ) ) ;
1918
1918
assert ! ( row. parents. is_none( ) ) ;
1919
1919
let row_id = tables
1920
- . add_individual ( 0 , & [ 0.2 , 0.4 , 0.6 ] , & [ 1 , 2 , 3 , 4 ] )
1920
+ . add_individual ( 0 , [ 0.2 , 0.4 , 0.6 ] , [ 1 , 2 , 3 , 4 ] )
1921
1921
. unwrap ( ) ;
1922
1922
assert_eq ! ( row_id, 2 ) ;
1923
1923
assert_eq ! (
0 commit comments