summaryrefslogtreecommitdiff
path: root/src/config/file.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2018-10-21 17:30:57 -0500
committerStuart Stock <stuart@int08h.com>2018-10-21 17:30:57 -0500
commit68788da97001f27702f5b9c7b2812dcab7bec24a (patch)
tree1f05a4ca7815e383705706ed758e10b81d068f03 /src/config/file.rs
parent608e43e4843fef6081ce3cac2186e0291b73e0cb (diff)
downloadroughenough-68788da97001f27702f5b9c7b2812dcab7bec24a.zip
Changes to keep Clippy happy
Diffstat (limited to 'src/config/file.rs')
-rw-r--r--src/config/file.rs2
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 => {