mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-01 20:06:35 +00:00
runtime-rs: 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
b95364a140
commit
20121fcda7
@ -98,7 +98,7 @@ impl DragonballInner {
|
||||
};
|
||||
|
||||
for tid in self.vmm_instance.get_vcpu_tids() {
|
||||
vcpu_thread_ids.vcpus.insert(tid.0 as u32, tid.1 as u32);
|
||||
vcpu_thread_ids.vcpus.insert(tid.0 as u32, tid.1);
|
||||
}
|
||||
info!(sl!(), "get thread ids {:?}", vcpu_thread_ids);
|
||||
Ok(vcpu_thread_ids)
|
||||
|
Loading…
Reference in New Issue
Block a user