kata-ctl: Allow empty const

Due to the way that multi-arch support is done, on various platforms
we will get a clippy error:
```
error: this expression always evaluates to false
```
which might not be true on those other platforms, so
allow this code pattern to suppress the clippy error

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman 2025-01-29 10:21:55 +00:00
parent 6de8e59109
commit d3e0ecc394

View File

@ -111,6 +111,7 @@ pub fn get_distro_details(os_release: &str, os_release_clr: &str) -> Result<(Str
target_arch = "aarch64",
all(target_arch = "powerpc64", target_endian = "little"),
))]
#[allow(clippy::const_is_empty)]
pub fn get_generic_cpu_details(cpu_info_file: &str) -> Result<(String, String)> {
let cpu_info = kata_sys_util::cpu::get_single_cpu_info(cpu_info_file, "\n\n")?;
let lines = cpu_info.lines();