mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
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:
parent
cf9ef1833c
commit
2a73e057db
@ -1133,7 +1133,7 @@ mod tests {
|
|||||||
},
|
},
|
||||||
output: CpuInfo {
|
output: CpuInfo {
|
||||||
cpu_features: "".to_string(),
|
cpu_features: "".to_string(),
|
||||||
default_vcpus: default_vcpus as i32,
|
default_vcpus,
|
||||||
default_maxvcpus: node_cpus,
|
default_maxvcpus: node_cpus,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user