diff options
author | Daniel Mueller <deso@posteo.net> | 2020-08-31 19:25:48 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-08-31 19:25:48 -0700 |
commit | 67ba96eb7d592ac7c09b2221420c6f706ac89a13 (patch) | |
tree | f2b10da5027e724d0f2286036290f331a08fd123 /src/main.rs | |
parent | 419ff8531c163200a5e7d21d4d0f7ac7ff8d25f8 (diff) | |
download | nitrocli-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/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 4e6b01d..5af10bb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,8 +79,6 @@ use std::ffi; use std::io; use std::process; -use anyhow::Result; - const NITROCLI_ADMIN_PIN: &str = "NITROCLI_ADMIN_PIN"; const NITROCLI_USER_PIN: &str = "NITROCLI_USER_PIN"; const NITROCLI_NEW_ADMIN_PIN: &str = "NITROCLI_NEW_ADMIN_PIN"; @@ -140,7 +138,7 @@ impl<'io> Stdio for ExecCtx<'io> { } /// Parse the command-line arguments and execute the selected command. -fn handle_arguments(ctx: &mut RunCtx<'_>, args: Vec<String>) -> Result<()> { +fn handle_arguments(ctx: &mut RunCtx<'_>, args: Vec<String>) -> anyhow::Result<()> { use structopt::StructOpt; match args::Args::from_iter_safe(args.iter()) { |