Small fixup

This commit is contained in:
Roey Darwish Dror 2018-11-05 09:25:59 +02:00
parent c674ef5f2c
commit 4914c017d4

View File

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