mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-12 10:16:48 +00:00
runtime-rs: resolve useless_conversion warnings for Rust 1.95
Remove redundant `.into_iter()` call in `Vec::from_iter()` argument in dragonball and firecracker's `inner_hypervisor.rs`, as flagged by the new `clippy::useless_conversion` lint in Rust 1.95. Generated-by: IBM Bob Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
@@ -145,7 +145,7 @@ impl DragonballInner {
|
||||
}
|
||||
|
||||
info!(sl!(), "get pids {:?}", pids);
|
||||
Ok(Vec::from_iter(pids.into_iter()))
|
||||
Ok(Vec::from_iter(pids))
|
||||
}
|
||||
|
||||
pub(crate) async fn get_vmm_master_tid(&self) -> Result<u32> {
|
||||
|
||||
@@ -163,7 +163,7 @@ impl FcInner {
|
||||
pids.insert(self.pid.unwrap());
|
||||
|
||||
debug!(sl(), "PIDs: {:?}", pids);
|
||||
Ok(Vec::from_iter(pids.into_iter()))
|
||||
Ok(Vec::from_iter(pids))
|
||||
}
|
||||
|
||||
pub(crate) async fn get_vmm_master_tid(&self) -> Result<u32> {
|
||||
|
||||
Reference in New Issue
Block a user