aboutsummaryrefslogtreecommitdiff
path: root/src/tests/otp.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-04-11 15:00:06 -0700
committerDaniel Mueller <deso@posteo.net>2020-04-11 15:00:06 -0700
commitf2ace56200f0229a4dcbd1767f48a39e1daa343d (patch)
tree1edf76d5b95a3df163906035a2ce4ccb72307c66 /src/tests/otp.rs
parentfafbf4a1bf635d5eea049cf561fbf8aa293c8e2b (diff)
downloadnitrocli-f2ace56200f0229a4dcbd1767f48a39e1daa343d.tar.gz
nitrocli-f2ace56200f0229a4dcbd1767f48a39e1daa343d.tar.bz2
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.
Diffstat (limited to 'src/tests/otp.rs')
-rw-r--r--src/tests/otp.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/otp.rs b/src/tests/otp.rs
index 4ce1156..f923170 100644
--- a/src/tests/otp.rs
+++ b/src/tests/otp.rs
@@ -1,7 +1,7 @@
// otp.rs
// *************************************************************************
-// * Copyright (C) 2019 Daniel Mueller (deso@posteo.net) *
+// * Copyright (C) 2019-2020 Daniel Mueller (deso@posteo.net) *
// * *
// * This program is free software: you can redistribute it and/or modify *
// * it under the terms of the GNU General Public License as published by *
@@ -19,7 +19,7 @@
use super::*;
-use crate::arg_defs;
+use crate::args;
#[test_device]
fn set_invalid_slot_raw(model: nitrokey::Model) {
@@ -101,8 +101,8 @@ fn set_get_totp(model: nitrokey::Model) -> crate::Result<()> {
#[test_device]
fn set_totp_uneven_chars(model: nitrokey::Model) -> crate::Result<()> {
let secrets = [
- (arg_defs::OtpSecretFormat::Hex, "123"),
- (arg_defs::OtpSecretFormat::Base32, "FBILDWWGA2"),
+ (args::OtpSecretFormat::Hex, "123"),
+ (args::OtpSecretFormat::Base32, "FBILDWWGA2"),
];
for (format, secret) in &secrets {