diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-11-23 09:36:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 09:36:21 +0100 |
commit | 1819dca65ae02afee9e495e961283a0b9ee62f0f (patch) | |
tree | f64c4bc5689ec2d0af1d2044f4e0b0890a94b51a /src/value.rs | |
parent | 90cef8b93d19f72d46bcbf0edbd74f2d8dc992d9 (diff) | |
parent | 11296ae50625053a64dbc7210dff814899879d0f (diff) |
Merge pull request #251 from conradludgate/value-deserialize
rename try_into to try_deserialize to avoid confusion
Diffstat (limited to 'src/value.rs')
-rw-r--r-- | src/value.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.rs b/src/value.rs index cc1a1f4..c88d8a9 100644 --- a/src/value.rs +++ b/src/value.rs @@ -211,7 +211,7 @@ impl Value { } /// Attempt to deserialize this value into the requested type. - pub fn try_into<'de, T: Deserialize<'de>>(self) -> Result<T> { + pub fn try_deserialize<'de, T: Deserialize<'de>>(self) -> Result<T> { T::deserialize(self) } |