summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2018-10-11 21:33:08 -0500
committerStuart Stock <stuart@int08h.com>2018-10-11 21:33:08 -0500
commited89d98692ac273ec7dfc39c19008334077779a3 (patch)
treee2e18b84b6bda3473ed88745ae14a9337cbd5d28 /src/config
parentdda76cfc88d6673358c6dd21007c227c45ccb13f (diff)
downloadroughenough-ed89d98692ac273ec7dfc39c19008334077779a3.zip
rustfmt
Diffstat (limited to 'src/config')
-rw-r--r--src/config/environment.rs4
-rw-r--r--src/config/file.rs3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/config/environment.rs b/src/config/environment.rs
index 14559d1..b7fe0da 100644
--- a/src/config/environment.rs
+++ b/src/config/environment.rs
@@ -74,8 +74,8 @@ impl EnvironmentConfig {
};
if let Ok(seed) = env::var(ROUGHENOUGH_SEED) {
- cfg.seed = hex::decode(&seed)
- .expect("invalid seed value; 'seed' should be a hex value");
+ cfg.seed =
+ hex::decode(&seed).expect("invalid seed value; 'seed' should be a hex value");
};
if let Ok(batch_size) = env::var(ROUGHENOUGH_BATCH_SIZE) {
diff --git a/src/config/file.rs b/src/config/file.rs
index fd84404..602baa1 100644
--- a/src/config/file.rs
+++ b/src/config/file.rs
@@ -87,7 +87,8 @@ impl FileConfig {
config.status_interval = Duration::from_secs(val as u64)
}
"key_protection" => {
- let val = value.as_str().unwrap().parse()
+ let val = value.as_str().unwrap()
+ .parse()
.expect(format!("invalid key_protection value: {:?}", value).as_ref());
config.key_protection = val
}