Skip to content

Commit

Permalink
style: Address clippy lints due to rust 1.72.0 (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen authored Aug 31, 2023
1 parent b28f3eb commit 67d8993
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/sys/flags.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// This allows us to pass lints with 1.72.0
// until we bump bitflags to 2.x.
// (See GH issue #496)
#![allow(clippy::bad_bit_mask)]

use crate::sys::bindings as ll_bindings;
use crate::RawFlags;
use bitflags::bitflags;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_trees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ fn test_iterate_samples_two_trees() {
let treeseq = treeseq_from_small_table_collection_two_trees();
assert_eq!(treeseq.num_trees(), 2);
let mut tree_iter = treeseq.tree_iterator(TreeFlags::SAMPLE_LISTS).unwrap();
let expected_number_of_roots = vec![2, 1];
let expected_number_of_roots = [2, 1];
let mut expected_root_ids = vec![
vec![NodeId::from(0)],
vec![NodeId::from(1), NodeId::from(0)],
Expand Down

0 comments on commit 67d8993

Please sign in to comment.