aboutsummaryrefslogtreecommitdiff
path: root/src/tests/reset.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
commit98b36813b2ce7789da5981920b672daa47be1c35 (patch)
treef2b10da5027e724d0f2286036290f331a08fd123 /src/tests/reset.rs
parent67652d83935705d70fe87cd1a1fee787a4715d33 (diff)
downloadnitrocli-98b36813b2ce7789da5981920b672daa47be1c35.tar.gz
nitrocli-98b36813b2ce7789da5981920b672daa47be1c35.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/reset.rs')
-rw-r--r--src/tests/reset.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/reset.rs b/src/tests/reset.rs
index e197970..c7492da 100644
--- a/src/tests/reset.rs
+++ b/src/tests/reset.rs
@@ -1,7 +1,7 @@
// reset.rs
// *************************************************************************
-// * Copyright (C) 2019 Robin Krahl (robin.krahl@ireas.org) *
+// * Copyright (C) 2019-2020 Robin Krahl (robin.krahl@ireas.org) *
// * *
// * This program is free software: you can redistribute it and/or modify *
// * it under the terms of the GNU General Public License as published by *
@@ -23,7 +23,7 @@ use nitrokey::GetPasswordSafe;
use super::*;
#[test_device]
-fn reset(model: nitrokey::Model) -> crate::Result<()> {
+fn reset(model: nitrokey::Model) -> anyhow::Result<()> {
let new_admin_pin = "87654321";
let mut ncli = Nitrocli::with_model(model);