From 4d57ac618124878b06aabaa8f392bc52ec60e6c9 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sat, 24 Aug 2019 09:29:11 -0700 Subject: 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. --- nitrocli/src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'nitrocli/src/main.rs') 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 = result::Result; +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"; -- cgit v1.2.1