qcow: raw_file: Fix clippy warning

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-08-13 12:20:37 +01:00 committed by Sebastien Boeuf
parent a4b67c2226
commit 1a01f2d82a

View File

@ -58,7 +58,7 @@ impl RawFile {
} }
RawFile { RawFile {
file, file,
alignment: alignment.try_into().unwrap(), alignment,
position: 0, position: 0,
} }
} }
@ -175,7 +175,7 @@ impl Read for RawFile {
self.seek(SeekFrom::Current(to_copy.try_into().unwrap())) self.seek(SeekFrom::Current(to_copy.try_into().unwrap()))
.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())) self.seek(SeekFrom::Current(to_seek.try_into().unwrap()))
.unwrap(); .unwrap();
Ok(to_seek.try_into().unwrap()) Ok(to_seek)
} }
} }
} }