mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: Automatically fix cargo clippy issues added in 1.65 (stable)
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
+3
-7
@@ -862,9 +862,7 @@ impl Vm {
|
||||
.map_err(|_| Error::InitramfsLoad)?
|
||||
.try_into()
|
||||
.unwrap();
|
||||
initramfs
|
||||
.seek(SeekFrom::Start(0))
|
||||
.map_err(|_| Error::InitramfsLoad)?;
|
||||
initramfs.rewind().map_err(|_| Error::InitramfsLoad)?;
|
||||
|
||||
let address =
|
||||
arch::initramfs_load_addr(guest_mem, size).map_err(|_| Error::InitramfsLoad)?;
|
||||
@@ -1829,9 +1827,7 @@ impl Vm {
|
||||
return Err(Error::InvalidPayloadType);
|
||||
}
|
||||
|
||||
payload_file
|
||||
.seek(SeekFrom::Start(0))
|
||||
.map_err(Error::LoadPayload)?;
|
||||
payload_file.rewind().map_err(Error::LoadPayload)?;
|
||||
mem.read_from(
|
||||
GuestAddress(section.address),
|
||||
payload_file,
|
||||
@@ -3174,7 +3170,7 @@ pub fn test_vm() {
|
||||
println!("HLT");
|
||||
break;
|
||||
}
|
||||
r => panic!("unexpected exit reason: {:?}", r),
|
||||
r => panic!("unexpected exit reason: {r:?}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user