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
commit4d57ac618124878b06aabaa8f392bc52ec60e6c9 (patch)
tree3b17f52e8c8add106173a16d118a81a487eba178 /nitrocli/src/main.rs
parent560152b074e017753517f1d3c6e4431410ebed4b (diff)
downloadnitrocli-4d57ac618124878b06aabaa8f392bc52ec60e6c9.tar.gz
nitrocli-4d57ac618124878b06aabaa8f392bc52ec60e6c9.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";