From a84573f053e4ab36dda3b82b8811bc20dd991844 Mon Sep 17 00:00:00 2001 From: Stuart Stock Date: Sat, 19 Jan 2019 14:16:51 -0600 Subject: Clean and refactor server's inner loop --- src/config/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index 65204e6..fb7854f 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -112,7 +112,7 @@ pub trait ServerConfig { /// * `ENV` will return an [`EnvironmentConfig`](struct.EnvironmentConfig.html) /// * any other value returns a [`FileConfig`](struct.FileConfig.html) /// -pub fn make_config(arg: &str) -> Result, Error> { +pub fn make_config(arg: &str) -> Result, Error> { if arg == "ENV" { match EnvironmentConfig::new() { Ok(cfg) => Ok(Box::new(cfg)), @@ -129,7 +129,7 @@ pub fn make_config(arg: &str) -> Result, Error> { /// /// Validate configuration settings. Returns `true` if the config is valid, `false` otherwise. /// -pub fn is_valid_config(cfg: &Box) -> bool { +pub fn is_valid_config(cfg: &Box) -> bool { let mut is_valid = true; if cfg.port() == 0 { -- cgit v1.2.3