From 1a01f2d82ae20578f1b7e5024d34e6a46a042fa3 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 13 Aug 2020 12:20:37 +0100 Subject: [PATCH] qcow: raw_file: Fix clippy warning Signed-off-by: Rob Bradford --- qcow/src/raw_file.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcow/src/raw_file.rs b/qcow/src/raw_file.rs index 23d189033..1dc9e9166 100644 --- a/qcow/src/raw_file.rs +++ b/qcow/src/raw_file.rs @@ -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) } } }