Restore __deserialize_content optimization

This commit is contained in:
David Tolnay committed 2025-09-13 14:22:33 -07:00
1 parent 93f43cedaa
commit f669f16127
6 files changed
+381 -338

No files matched your search

+10
View File
@@ -1255,6 +1255,16 @@ pub trait Deserializer<'de>: Sized {
fn is_human_readable(&self) -> bool {
true
}
// Not public API.
#[cfg(all(not(no_serde_derive), any(feature = "std", feature = "alloc")))]
#[doc(hidden)]
fn __deserialize_content_v1<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where
V: Visitor<'de, Value = crate::private::Content<'de>>,
{
self.deserialize_any(visitor)
}
}
////////////////////////////////////////////////////////////////////////////////