From f2ace56200f0229a4dcbd1767f48a39e1daa343d Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sat, 11 Apr 2020 15:00:06 -0700 Subject: Rename arg_defs.rs to args.rs We have never been fully satisfied with the name arg_defs. Now that we have gotten rid of the formerly used args module, this change renames arg_defs to args. --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index a2c4f48..27097c9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,7 +68,7 @@ mod redefine; #[macro_use] mod arg_util; -mod arg_defs; +mod args; mod commands; mod error; mod pinentry; @@ -116,7 +116,7 @@ where #[allow(missing_debug_implementations)] pub struct ExecCtx<'io> { /// The Nitrokey model to use. - pub model: Option, + pub model: Option, /// See `RunCtx::stdout`. pub stdout: &'io mut dyn io::Write, /// See `RunCtx::stderr`. @@ -147,7 +147,7 @@ impl<'io> Stdio for ExecCtx<'io> { fn handle_arguments(ctx: &mut RunCtx<'_>, args: Vec) -> Result<()> { use structopt::StructOpt; - match arg_defs::Args::from_iter_safe(args.iter()) { + match args::Args::from_iter_safe(args.iter()) { Ok(args) => { let mut ctx = ExecCtx { model: args.model, -- cgit v1.2.1