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/value.rs | |
parent | 225005994d46e634918568b9013cfae82c491a8a (diff) |
Rename get_str() → get_string() to match returned type
Diffstat (limited to 'src/value.rs')
-rw-r--r-- | src/value.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.rs b/src/value.rs index 177acf7..602b40a 100644 --- a/src/value.rs +++ b/src/value.rs @@ -286,9 +286,9 @@ impl Value { } } - /// Returns `self` into a str, if possible. + /// Returns `self` into a string, if possible. // FIXME: Should this not be `try_into_*` ? - pub fn into_str(self) -> Result<String> { + pub fn into_string(self) -> Result<String> { match self.kind { ValueKind::String(value) => Ok(value), |