Skip to content

Commit 3310ff2

Browse files
authored
style: fix lints from rust 1.81.0 (#662)
1 parent 1e17e97 commit 3310ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test_fixtures.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ pub mod simulation {
384384
let site_not_exist = site_id_map_tables[mut_pos] == SiteId::NULL;
385385
if site_not_exist {
386386
site_id_map_tables[mut_pos] =
387-
tables.add_site(mut_pos as f64, Some(&[b'a'])).unwrap();
387+
tables.add_site(mut_pos as f64, Some(b"a")).unwrap();
388388
}
389389
// add mutation
390390
let parent_mut = site_last_mutation_tables[mut_pos];
@@ -407,7 +407,7 @@ pub mod simulation {
407407
let site_not_exist = site_id_map_tr_tbls[mut_pos] == SiteId::NULL;
408408
if site_not_exist {
409409
site_id_map_tr_tbls[mut_pos] =
410-
tr_tbls.add_site(mut_pos as f64, Some(&[b'a'])).unwrap();
410+
tr_tbls.add_site(mut_pos as f64, Some(b"a")).unwrap();
411411
}
412412
// add mutation
413413
let parent_mut = site_last_mutation_tr_tbls[mut_pos];

0 commit comments

Comments
 (0)