summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 94658da..0377438 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -211,8 +211,8 @@ impl Config {
}
}
- pub fn get_str(&self, key: &str) -> Result<String> {
- self.get(key).and_then(Value::into_str)
+ pub fn get_string(&self, key: &str) -> Result<String> {
+ self.get(key).and_then(Value::into_string)
}
pub fn get_int(&self, key: &str) -> Result<i64> {