mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: reevaluate #[allow] attributes
Remove stale #[allow]s whose lints no longer fire, convert the unconditionally-firing ones to #[expect], and keep the arch/feature-conditional ones as #[allow]. Verified across kvm/mshv, x86_64/aarch64, and --all-features. Part of #8326. Signed-off-by: Tushar Khatri <hello@tusharkhatri.in>
This commit is contained in:
committed by
Rob Bradford
parent
4f68b687aa
commit
b059475dfb
+1
-2
@@ -1046,7 +1046,7 @@ impl PlatformConfig {
|
||||
}
|
||||
|
||||
impl MemoryConfig {
|
||||
#[allow(clippy::needless_pass_by_value)]
|
||||
#[expect(clippy::needless_pass_by_value)]
|
||||
pub fn parse(memory: &str, memory_zones: Option<Vec<&str>>) -> Result<Self> {
|
||||
let mut parser = OptionParser::new();
|
||||
parser
|
||||
@@ -4517,7 +4517,6 @@ mod unit_tests {
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn make_vhost_user_config(
|
||||
socket: &str,
|
||||
virtio_id: u64,
|
||||
|
||||
Reference in New Issue
Block a user