diff options
author | Caleb Maclennan <caleb@alerque.com> | 2021-03-28 10:59:58 +0300 |
---|---|---|
committer | Caleb Maclennan <caleb@alerque.com> | 2021-03-28 20:15:08 +0300 |
commit | 7687476f9b3b478e17e72a63b2a45d12d92e348d (patch) | |
tree | 84a1ef8450f48f199e97131a75a9240910193318 /src/config.rs | |
parent | 225005994d46e634918568b9013cfae82c491a8a (diff) |
Rename get_str() → get_string() to match returned type
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
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> { |