Skip to content
Myr

Use associated type in signature to not repeat concrete type

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Mingun · committed by Mingun · parent 80b2f5f · Browse files · 2 files+3 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−6 removed

  • other:+3 added−6 removed

2 files+3 added−6 removed

modified:serde/src/de/mod.rs+1 added-4 removed
1224 unmodified lines
12251226 // Not public API.1227 #[cfg(all(not(no_serde_derive), any(feature = "std", feature = "alloc")))]1228 #[doc(hidden)]1229 fn __deserialize_content<V>(1230 self,1231 visitor: V,1232 ) -> Result<crate::__private::de::Content<'de>, Self::Error>1229 fn __deserialize_content<V>(self, visitor: V) -> Result<V::Value, Self::Error>1230 where1231 V: Visitor<'de, Value = crate::__private::de::Content<'de>>,1232 {1233 self.deserialize_any(visitor)
1098 unmodified lines
modified:serde/src/private/de.rs+2 added-2 removed
1495 unmodified lines
1496 drop(self);1497 visitor.visit_unit()1498 }14991500 fn __deserialize_content<V>(self, visitor: V) -> Result<Content<'de>, Self::Error>1500 fn __deserialize_content<V>(self, visitor: V) -> Result<V::Value, Self::Error>1501 where1502 V: Visitor<'de, Value = Content<'de>>,1503 {1504 let _ = visitor;
580 unmodified lines
2085 {2086 visitor.visit_unit()2087 }20882089 fn __deserialize_content<V>(self, visitor: V) -> Result<Content<'de>, Self::Error>2089 fn __deserialize_content<V>(self, visitor: V) -> Result<V::Value, Self::Error>2090 where2091 V: Visitor<'de, Value = Content<'de>>,2092 {2093 let _ = visitor;
702 unmodified lines