From 67ba96eb7d592ac7c09b2221420c6f706ac89a13 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/status.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/status.rs') diff --git a/src/tests/status.rs b/src/tests/status.rs index c617a9e..c944cbb 100644 --- a/src/tests/status.rs +++ b/src/tests/status.rs @@ -41,7 +41,7 @@ fn not_found() { } #[test_device(pro)] -fn output_pro(model: nitrokey::Model) -> crate::Result<()> { +fn output_pro(model: nitrokey::Model) -> anyhow::Result<()> { let re = regex::Regex::new( r#"^Status: model: Pro @@ -59,7 +59,7 @@ $"#, } #[test_device(storage)] -fn output_storage(model: nitrokey::Model) -> crate::Result<()> { +fn output_storage(model: nitrokey::Model) -> anyhow::Result<()> { let re = regex::Regex::new( r#"^Status: model: Storage -- cgit v1.2.3