diff options
author | Aaron Hill <aa1ronham@gmail.com> | 2018-10-14 20:32:26 -0400 |
---|---|---|
committer | Aaron Hill <aa1ronham@gmail.com> | 2018-10-17 21:21:04 -0400 |
commit | 56961b62187d55a62539a7443a289b373cbb5144 (patch) | |
tree | d994cda80134e614406564c348e4592f94fc8695 /src/config/file.rs | |
parent | 1f09d2797c4061e2f15146af061a24a71c1e10af (diff) | |
download | roughenough-56961b62187d55a62539a7443a289b373cbb5144.zip |
Run rustfmt
Diffstat (limited to 'src/config/file.rs')
-rw-r--r-- | src/config/file.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/config/file.rs b/src/config/file.rs index bef0f1e..b0f8b4d 100644 --- a/src/config/file.rs +++ b/src/config/file.rs @@ -21,8 +21,8 @@ use yaml_rust::YamlLoader; use config::ServerConfig; use config::{DEFAULT_BATCH_SIZE, DEFAULT_STATUS_INTERVAL}; -use Error; use key::KeyProtection; +use Error; /// /// Read a Roughenough server configuration ([ServerConfig](trait.ServerConfig.html)) @@ -86,7 +86,9 @@ impl FileConfig { config.status_interval = Duration::from_secs(val as u64) } "key_protection" => { - let val = value.as_str().unwrap() + let val = value + .as_str() + .unwrap() .parse() .expect(format!("invalid key_protection value: {:?}", value).as_ref()); config.key_protection = val @@ -125,7 +127,6 @@ impl ServerConfig for FileConfig { self.status_interval } - fn key_protection(&self) -> &KeyProtection { &self.key_protection } |