From 98b36813b2ce7789da5981920b672daa47be1c35 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Mon, 31 Aug 2020 19:25:48 -0700 Subject: 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. --- src/tests/hidden.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/hidden.rs') diff --git a/src/tests/hidden.rs b/src/tests/hidden.rs index eabcfd4..6e08c1b 100644 --- a/src/tests/hidden.rs +++ b/src/tests/hidden.rs @@ -1,7 +1,7 @@ // hidden.rs // ************************************************************************* -// * Copyright (C) 2019 Daniel Mueller (deso@posteo.net) * +// * Copyright (C) 2019-2020 Daniel Mueller (deso@posteo.net) * // * * // * 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 * @@ -20,7 +20,7 @@ use super::*; #[test_device(storage)] -fn hidden_create_open_close(model: nitrokey::Model) -> crate::Result<()> { +fn hidden_create_open_close(model: nitrokey::Model) -> anyhow::Result<()> { let mut ncli = Nitrocli::with_model(model); let out = ncli.handle(&["hidden", "create", "0", "50", "100"])?; assert!(out.is_empty()); -- cgit v1.2.1