From 6f4692db1bf7bbb9fa5a5143f53856f64694097b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Vald=C3=A9s?= Date: Tue, 25 Feb 2020 17:38:49 +0100 Subject: [PATCH] Added a warning I forgot to change on last commit --- src/settings.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/settings.rs b/src/settings.rs index 62f1751..3b568a5 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -75,9 +75,10 @@ impl FromValue for String { impl FromValue for bool { fn from_value(&mut self, value: Value) { - // TODO -- Warn when incorrect type if value.is_bool() { *self = value.as_bool().unwrap(); + }else{ + error!("Setting expected a string, but received {:?}", value); } } }