summary refs log tree commit diff
path: root/msg_socket2/src/socket.rs
diff options
context:
space:
mode:
Diffstat (limited to 'msg_socket2/src/socket.rs')
-rw-r--r--msg_socket2/src/socket.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/msg_socket2/src/socket.rs b/msg_socket2/src/socket.rs
index dc0733d..4e75e82 100644
--- a/msg_socket2/src/socket.rs
+++ b/msg_socket2/src/socket.rs
@@ -4,7 +4,9 @@ use std::marker::PhantomData;
 use std::os::unix::prelude::*;
 use sys_util::{net::UnixSeqpacket, ScmSocket};
 
-use crate::{DeserializeWithFds, DeserializerWithFds, Error, SerializeWithFds, SerializerWithFds};
+use crate::{
+    DeserializeWithFds, DeserializerWithFds, Error, SerializeWithFds, SerializerWithFdsImpl,
+};
 
 #[derive(Debug)]
 pub struct Socket<Send, Recv> {
@@ -27,7 +29,7 @@ impl<Send: SerializeWithFds, Recv> Socket<Send, Recv> {
         let mut fds: Vec<RawFd> = vec![];
 
         let mut serializer = Serializer::new(&mut bytes, DefaultOptions::new());
-        let serializer_with_fds = SerializerWithFds::new(&mut fds, &mut serializer);
+        let serializer_with_fds = SerializerWithFdsImpl::new(&mut fds, &mut serializer);
         value.serialize(serializer_with_fds)?;
 
         self.sock.send_with_fds(&[IoSlice::new(&bytes)], &fds)?;