kata-types: Fix unnecessary_cast warnings

As we bumped the rust toolchain to 1.66.0, some new warnings have been
raised due to unnecessary_cast.

Let's fix them all here.

For more info about the warnings, please, take a look at:
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-01-02 14:17:47 +01:00
parent cf9ef1833c
commit 2a73e057db

View File

@ -1133,7 +1133,7 @@ mod tests {
},
output: CpuInfo {
cpu_features: "".to_string(),
default_vcpus: default_vcpus as i32,
default_vcpus,
default_maxvcpus: node_cpus,
},
},