Skip to content

Commit

Permalink
style: fix lints from rust 1.81.0 (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Sep 6, 2024
1 parent 1e17e97 commit 3310ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test_fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ pub mod simulation {
let site_not_exist = site_id_map_tables[mut_pos] == SiteId::NULL;
if site_not_exist {
site_id_map_tables[mut_pos] =
tables.add_site(mut_pos as f64, Some(&[b'a'])).unwrap();
tables.add_site(mut_pos as f64, Some(b"a")).unwrap();
}
// add mutation
let parent_mut = site_last_mutation_tables[mut_pos];
Expand All @@ -407,7 +407,7 @@ pub mod simulation {
let site_not_exist = site_id_map_tr_tbls[mut_pos] == SiteId::NULL;
if site_not_exist {
site_id_map_tr_tbls[mut_pos] =
tr_tbls.add_site(mut_pos as f64, Some(&[b'a'])).unwrap();
tr_tbls.add_site(mut_pos as f64, Some(b"a")).unwrap();
}
// add mutation
let parent_mut = site_last_mutation_tr_tbls[mut_pos];
Expand Down

0 comments on commit 3310ff2

Please sign in to comment.