From 4914c017d4e5cb4810df10b9bfaa33e4482f180a Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 5 Nov 2018 09:25:59 +0200 Subject: [PATCH] Small fixup --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 718c4eb..c04d88c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,7 +78,7 @@ fn create(command: CreateCommand) -> Result<(), Error> { .filter(|ref f| f.starts_with("usb-")) .is_some())) { - return Err(ErrorKind::NotUSB.into()); + Err(ErrorKind::NotUSB)?; } let mount_point = tempdir().context(ErrorKind::TmpDirError)?;