Restore __deserialize_content optimization

This commit is contained in:
David Tolnay
2025-09-13 10:24:40 -07:00
parent 93f43cedaa
commit f669f16127
6 changed files with 381 additions and 338 deletions
+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)
}
}
////////////////////////////////////////////////////////////////////////////////