From 049a0cd1286f2fef41eaa87dc1722c05889c2477 Mon Sep 17 00:00:00 2001 From: hashmap Date: Fri, 15 Feb 2019 19:46:25 +0100 Subject: [PATCH] Fix compiler warnings (#2579) --- config/src/config.rs | 1 + src/bin/cmd/server.rs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/src/config.rs b/config/src/config.rs index 252f43c1b..af1261124 100644 --- a/config/src/config.rs +++ b/config/src/config.rs @@ -46,6 +46,7 @@ const GRIN_HOME: &'static str = ".grin"; const GRIN_CHAIN_DIR: &'static str = "chain_data"; /// Wallet data directory pub const GRIN_WALLET_DIR: &'static str = "wallet_data"; +/// API secret file name pub const API_SECRET_FILE_NAME: &'static str = ".api_secret"; fn get_grin_path(chain_type: &global::ChainTypes) -> Result { diff --git a/src/bin/cmd/server.rs b/src/bin/cmd/server.rs index ea9c4ad0b..1d3b03c1a 100644 --- a/src/bin/cmd/server.rs +++ b/src/bin/cmd/server.rs @@ -13,8 +13,6 @@ // limitations under the License. /// Grin server commands processing -#[cfg(not(target_os = "windows"))] -use std::env::current_dir; use std::process::exit; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc;