Skip to content

Commit 64f8997

Browse files
committed
style: Address clippy lints due to rust 1.72.0
1 parent b28f3eb commit 64f8997

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/sys/flags.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// This allows us to pass lints with 1.72.0
2+
// until we bump bitflags to 2.x.
3+
// (See GH issue #496)
4+
#![allow(clippy::bad_bit_mask)]
5+
16
use crate::sys::bindings as ll_bindings;
27
use crate::RawFlags;
38
use bitflags::bitflags;

tests/test_trees.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn test_iterate_samples_two_trees() {
281281
let treeseq = treeseq_from_small_table_collection_two_trees();
282282
assert_eq!(treeseq.num_trees(), 2);
283283
let mut tree_iter = treeseq.tree_iterator(TreeFlags::SAMPLE_LISTS).unwrap();
284-
let expected_number_of_roots = vec![2, 1];
284+
let expected_number_of_roots = [2, 1];
285285
let mut expected_root_ids = vec![
286286
vec![NodeId::from(0)],
287287
vec![NodeId::from(1), NodeId::from(0)],

0 commit comments

Comments
 (0)