commit | efe2b7ed70ea9303d0f8059c127c48cbe4656f53 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Sep 11 17:09:35 2018 |
committer | David Tolnay <dtolnay@gmail.com> | Wed Sep 19 04:56:10 2018 |
tree | 49fd70784255705264fa59c36c15b0e36317efa0 | |
parent | e5c85be7af1ae83956c7226d89a92cd9af328849 [diff] |
Avoid instantiating deserialize_any for KeyClassifier Deserialize_str involves compiling less code.
diff --git a/src/value/de.rs b/src/value/de.rs index f8cc2b8..1749f26 100644 --- a/src/value/de.rs +++ b/src/value/de.rs
@@ -1301,7 +1301,7 @@ where D: serde::Deserializer<'de>, { - deserializer.deserialize_any(self) + deserializer.deserialize_str(self) } }