aboutsummaryrefslogtreecommitdiff
path: root/src/tests/list.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-08-31 19:25:48 -0700
committerDaniel Mueller <deso@posteo.net>2020-08-31 19:25:48 -0700
commit67ba96eb7d592ac7c09b2221420c6f706ac89a13 (patch)
treef2b10da5027e724d0f2286036290f331a08fd123 /src/tests/list.rs
parent419ff8531c163200a5e7d21d4d0f7ac7ff8d25f8 (diff)
downloadnitrocli-67ba96eb7d592ac7c09b2221420c6f706ac89a13.tar.gz
nitrocli-67ba96eb7d592ac7c09b2221420c6f706ac89a13.tar.bz2
Remove application global Result definition
In the past we were using an application global custom Result type definition. This makes less sense now that we switched over to using anyhow's Error and Result types. We kept that for the time being, but with this change we remove the type and use anyhow::Result instead.
Diffstat (limited to 'src/tests/list.rs')
-rw-r--r--src/tests/list.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/list.rs b/src/tests/list.rs
index 4f80afe..e8bd819 100644
--- a/src/tests/list.rs
+++ b/src/tests/list.rs
@@ -20,7 +20,7 @@
use super::*;
#[test_device]
-fn not_connected() -> crate::Result<()> {
+fn not_connected() -> anyhow::Result<()> {
let res = Nitrocli::new().handle(&["list"])?;
assert_eq!(res, "No Nitrokey device connected\n");
@@ -28,7 +28,7 @@ fn not_connected() -> crate::Result<()> {
}
#[test_device]
-fn connected(model: nitrokey::Model) -> crate::Result<()> {
+fn connected(model: nitrokey::Model) -> anyhow::Result<()> {
let re = regex::Regex::new(
r#"^device path\tmodel\tserial number
([[:^space:]]+\t(Pro|Storage|unknown)\t0x[[:xdigit:]]+