Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: allow clippy::bad_bit_mask in sys/flags.rs #535

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading