mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
qcow: raw_file: Fix clippy warning
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
a4b67c2226
commit
1a01f2d82a
@ -58,7 +58,7 @@ impl RawFile {
|
||||
}
|
||||
RawFile {
|
||||
file,
|
||||
alignment: alignment.try_into().unwrap(),
|
||||
alignment,
|
||||
position: 0,
|
||||
}
|
||||
}
|
||||
@ -175,7 +175,7 @@ impl Read for RawFile {
|
||||
|
||||
self.seek(SeekFrom::Current(to_copy.try_into().unwrap()))
|
||||
.unwrap();
|
||||
Ok(to_copy.try_into().unwrap())
|
||||
Ok(to_copy)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -259,7 +259,7 @@ impl Write for RawFile {
|
||||
|
||||
self.seek(SeekFrom::Current(to_seek.try_into().unwrap()))
|
||||
.unwrap();
|
||||
Ok(to_seek.try_into().unwrap())
|
||||
Ok(to_seek)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user