mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-14 11:41:01 +00:00
Use associated type in signature to not repeat concrete type
This commit is contained in:
+1
-4
@@ -1226,10 +1226,7 @@ pub trait Deserializer<'de>: Sized {
|
|||||||
// Not public API.
|
// Not public API.
|
||||||
#[cfg(all(not(no_serde_derive), any(feature = "std", feature = "alloc")))]
|
#[cfg(all(not(no_serde_derive), any(feature = "std", feature = "alloc")))]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
fn __deserialize_content<V>(
|
fn __deserialize_content<V>(self, visitor: V) -> Result<V::Value, Self::Error>
|
||||||
self,
|
|
||||||
visitor: V,
|
|
||||||
) -> Result<crate::__private::de::Content<'de>, Self::Error>
|
|
||||||
where
|
where
|
||||||
V: Visitor<'de, Value = crate::__private::de::Content<'de>>,
|
V: Visitor<'de, Value = crate::__private::de::Content<'de>>,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1497,7 +1497,7 @@ mod content {
|
|||||||
visitor.visit_unit()
|
visitor.visit_unit()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn __deserialize_content<V>(self, visitor: V) -> Result<Content<'de>, Self::Error>
|
fn __deserialize_content<V>(self, visitor: V) -> Result<V::Value, Self::Error>
|
||||||
where
|
where
|
||||||
V: Visitor<'de, Value = Content<'de>>,
|
V: Visitor<'de, Value = Content<'de>>,
|
||||||
{
|
{
|
||||||
@@ -2086,7 +2086,7 @@ mod content {
|
|||||||
visitor.visit_unit()
|
visitor.visit_unit()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn __deserialize_content<V>(self, visitor: V) -> Result<Content<'de>, Self::Error>
|
fn __deserialize_content<V>(self, visitor: V) -> Result<V::Value, Self::Error>
|
||||||
where
|
where
|
||||||
V: Visitor<'de, Value = Content<'de>>,
|
V: Visitor<'de, Value = Content<'de>>,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user