diff options
author | Stuart Stock <stuart@int08h.com> | 2018-10-21 17:30:57 -0500 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2018-10-21 17:30:57 -0500 |
commit | 68788da97001f27702f5b9c7b2812dcab7bec24a (patch) | |
tree | 1f05a4ca7815e383705706ed758e10b81d068f03 /src/config/file.rs | |
parent | 608e43e4843fef6081ce3cac2186e0291b73e0cb (diff) | |
download | roughenough-68788da97001f27702f5b9c7b2812dcab7bec24a.zip |
Changes to keep Clippy happy
Diffstat (limited to 'src/config/file.rs')
-rw-r--r-- | src/config/file.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/file.rs b/src/config/file.rs index b0f8b4d..b1e856b 100644 --- a/src/config/file.rs +++ b/src/config/file.rs @@ -90,7 +90,7 @@ impl FileConfig { .as_str() .unwrap() .parse() - .expect(format!("invalid key_protection value: {:?}", value).as_ref()); + .unwrap_or_else(|_| panic!("invalid key_protection value: {:?}", value)); config.key_protection = val } unknown => { |