From eae8b2a1f0d1faf70776fccc12c93267a2143021 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Fri, 10 Apr 2020 12:20:18 -0700 Subject: Merge otp_set function into commands.rs Now that we have isolated and separated out structopt specific definitions into a new module, arg_defs, args.rs is actually so small that we do not want to keep it around any longer. This change marks a first step moving us closer towards removing it. Specifically, it merges the otp_set function from args.rs into the function of the same name in commands.rs. --- src/arg_defs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arg_defs.rs') diff --git a/src/arg_defs.rs b/src/arg_defs.rs index c63fd82..fd296e4 100644 --- a/src/arg_defs.rs +++ b/src/arg_defs.rs @@ -222,7 +222,7 @@ Command! {OtpCommand, [ crate::commands::otp_get(ctx, args.slot, args.algorithm, args.time) }, /// Configures a one-time password slot - Set(OtpSetArgs) => crate::args::otp_set, + Set(OtpSetArgs) => crate::commands::otp_set, /// Prints the status of the one-time password slots Status(OtpStatusArgs) => |ctx, args: OtpStatusArgs| crate::commands::otp_status(ctx, args.all), ]} -- cgit v1.2.1