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)?;