diff options
author | Stuart Stock <stuart@int08h.com> | 2019-01-26 07:30:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 07:30:14 -0600 |
commit | 9515a562754b81a3d499f6ab39b1b4810076ff2c (patch) | |
tree | 1589241806560531ec1adb63d28837cda906e952 /src/config | |
parent | bdf087db2f5ebcadf31bd0968b690daa25820489 (diff) | |
parent | 796cd33d1a8f9ed2713447f23b24535eef3b34ba (diff) | |
download | roughenough-9515a562754b81a3d499f6ab39b1b4810076ff2c.zip |
Merge pull request #14 from int08h/1.1.2
Land 1.1.2
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Box<ServerConfig>, Error> { +pub fn make_config(arg: &str) -> Result<Box<dyn ServerConfig>, Error> { if arg == "ENV" { match EnvironmentConfig::new() { Ok(cfg) => Ok(Box::new(cfg)), @@ -129,7 +129,7 @@ pub fn make_config(arg: &str) -> Result<Box<ServerConfig>, Error> { /// /// Validate configuration settings. Returns `true` if the config is valid, `false` otherwise. /// -pub fn is_valid_config(cfg: &Box<ServerConfig>) -> bool { +pub fn is_valid_config(cfg: &Box<dyn ServerConfig>) -> bool { let mut is_valid = true; if cfg.port() == 0 { |