From a94d48debf1df87e037b8bde90c9087f3d73382d Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Fri, 25 Aug 2023 09:19:36 +0200 Subject: [PATCH] SVSM/sev/utils: Suppress clippy::bad_bit_mask errors The bitflags are intentionally defined the way they are, so suppress the warnings about them. Signed-off-by: Joerg Roedel --- src/sev/utils.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sev/utils.rs b/src/sev/utils.rs index cda27f52e..76cbca24b 100644 --- a/src/sev/utils.rs +++ b/src/sev/utils.rs @@ -4,6 +4,9 @@ // // Author: Joerg Roedel +// 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};