From 7687476f9b3b478e17e72a63b2a45d12d92e348d Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Sun, 28 Mar 2021 10:59:58 +0300 Subject: =?UTF-8?q?Rename=20get=5Fstr()=20=E2=86=92=20get=5Fstring()=20to?= =?UTF-8?q?=20match=20returned=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config.rs') 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 { - self.get(key).and_then(Value::into_str) + pub fn get_string(&self, key: &str) -> Result { + self.get(key).and_then(Value::into_string) } pub fn get_int(&self, key: &str) -> Result { -- cgit v1.2.3