aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/src/main.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-08-24 09:29:11 -0700
committerDaniel Mueller <deso@posteo.net>2019-08-24 09:29:11 -0700
commit43932f46aaa4798e3ce8f091eb3cb4e28c937526 (patch)
tree7e07bc8733eebe2748e71226452b19fc26d0cf89 /nitrocli/src/main.rs
parente9c205f951e11d09bc3f8a56f5f2d62641b588d9 (diff)
downloadnitrocli-43932f46aaa4798e3ce8f091eb3cb4e28c937526.tar.gz
nitrocli-43932f46aaa4798e3ce8f091eb3cb4e28c937526.tar.bz2
Introduce NITROCLI constant
This change introduces a constant for the frequently used string "nitrocli" to the program and replaces usages of those strings with references to the constant.
Diffstat (limited to 'nitrocli/src/main.rs')
-rw-r--r--nitrocli/src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/nitrocli/src/main.rs b/nitrocli/src/main.rs
index 57fbceb..bb4b007 100644
--- a/nitrocli/src/main.rs
+++ b/nitrocli/src/main.rs
@@ -87,6 +87,7 @@ use crate::error::Error;
type Result<T> = result::Result<T, Error>;
+const NITROCLI: &str = "nitrocli";
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";