Skip to content

Commit

Permalink
Avoid clippy::bad_bit_mask suppression
Browse files Browse the repository at this point in the history
With the new version of `bitflags` we no longer need to suppress
the `clippy::bad_bit_mask` warnings.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
  • Loading branch information
stefano-garzarella committed Aug 29, 2023
1 parent 6aa2b17 commit 58b9635
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings -A clippy::bad_bit_mask
args: --all-features -- -D warnings
2 changes: 1 addition & 1 deletion scripts/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ for file in `git diff --name-only --staged`; do
fi
done

cargo clippy --all-features -- -D warnings -A clippy::bad_bit_mask || exit 1
cargo clippy --all-features -- -D warnings || exit 1

exit $RET

3 changes: 0 additions & 3 deletions src/sev/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
//
// Author: Joerg Roedel <jroedel@suse.de>

// For bitflags definitions
#![allow(clippy::bad_bit_mask)]

use crate::address::{Address, VirtAddr};
use crate::error::SvsmError;
use crate::types::{GUEST_VMPL, PAGE_SIZE, PAGE_SIZE_2M};
Expand Down

0 comments on commit 58b9635

Please sign in to comment.