diff options
author | Daniel Mueller <deso@posteo.net> | 2020-04-11 13:23:52 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-04-11 13:23:52 -0700 |
commit | fafbf4a1bf635d5eea049cf561fbf8aa293c8e2b (patch) | |
tree | d018a9e74d044e9161f436f2a5fd977022cf9599 /src/pinentry.rs | |
parent | 93c605418568bf71bcc3be6956f07f9650b45fea (diff) | |
download | nitrocli-fafbf4a1bf635d5eea049cf561fbf8aa293c8e2b.tar.gz nitrocli-fafbf4a1bf635d5eea049cf561fbf8aa293c8e2b.tar.bz2 |
Merge remaining bits of args.rs into main.rs
This change removes the args module by moving all remaining
functionality in it into main.rs. The result is arguably a nice
consolidation of all context related definitions in a single module.
Diffstat (limited to 'src/pinentry.rs')
-rw-r--r-- | src/pinentry.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pinentry.rs b/src/pinentry.rs index 878ed9e..47c8844 100644 --- a/src/pinentry.rs +++ b/src/pinentry.rs @@ -24,8 +24,8 @@ use std::process; use std::str; use crate::arg_defs; -use crate::args; use crate::error::Error; +use crate::ExecCtx; type CowStr = borrow::Cow<'static, str>; @@ -222,7 +222,7 @@ where /// dialog. It is used to choose an appropriate description and to /// decide whether a quality bar is shown in the dialog. pub fn inquire<E>( - ctx: &mut args::ExecCtx<'_>, + ctx: &mut ExecCtx<'_>, entry: &E, mode: Mode, error_msg: Option<&str>, @@ -279,7 +279,7 @@ where } } -pub fn choose<E>(ctx: &mut args::ExecCtx<'_>, entry: &E) -> crate::Result<String> +pub fn choose<E>(ctx: &mut ExecCtx<'_>, entry: &E) -> crate::Result<String> where E: SecretEntry, { |