summary refs log tree commit diff
path: root/msg_socket2/src/de.rs
diff options
context:
space:
mode:
Diffstat (limited to 'msg_socket2/src/de.rs')
-rw-r--r--msg_socket2/src/de.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/msg_socket2/src/de.rs b/msg_socket2/src/de.rs
index 0dec746..fa6582a 100644
--- a/msg_socket2/src/de.rs
+++ b/msg_socket2/src/de.rs
@@ -97,8 +97,8 @@ pub trait DeserializerWithFds<'de> {
     /// `VisitorWithFds` instead of a `Visitor`.
     fn deserialize_seq<V: VisitorWithFds<'de>>(self, visitor: V) -> Result<V::Value, Self::Error>;
 
-    /// Like `Deserializer::deserialize_map` but `visitor` is a
-    /// `VisitorWithFds` instead of a `Visitor`.
+    /// Like `Deserializer::deserialize_tuple_struct`, but `visitor`
+    /// is a `VisitorWithFds` instead of a `Visitor`.
     fn deserialize_tuple_struct<V: VisitorWithFds<'de>>(
         self,
         name: &'static str,
@@ -208,7 +208,7 @@ where
         name: &'static str,
         len: usize,
         visitor: V,
-    ) -> Result<V::Value, D::Error> {
+    ) -> Result<V::Value, Self::Error> {
         let wrapper = WithFds {
             inner: visitor,
             fds: self.fds,