You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on both serde's suggestion and the actual method implementation, this should not be DeserializeOwned. This issue has limited impact in practical use, but for some generic implementations may lead to more complex signatures and thus cascading contagion.
Solution
Simply change the DeserializeOwned into Deserialize<'de>.
The text was updated successfully, but these errors were encountered:
Summary
Currently,
toml::de::from_str
has a signature like this:Based on both
serde
's suggestion and the actual method implementation, this should not beDeserializeOwned
. This issue has limited impact in practical use, but for some generic implementations may lead to more complex signatures and thus cascading contagion.Solution
Simply change the
DeserializeOwned
intoDeserialize<'de>
.The text was updated successfully, but these errors were encountered: