summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pws.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pws.rs b/tests/pws.rs
index f12af48..a4647bd 100644
--- a/tests/pws.rs
+++ b/tests/pws.rs
@@ -21,7 +21,7 @@ fn get_slot_name_direct(slot: u8) -> Result<String, Error> {
let error = unsafe { nitrokey_sys::NK_get_last_command_status() } as c_int;
match error {
0 => Ok(s),
- other => Err(CommandError::from(other).into()),
+ other => Err(Error::from(other)),
}
}
false => Ok(s),