We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b9e42e commit 578ed66Copy full SHA for 578ed66
gio/src/socket.rs
@@ -820,7 +820,10 @@ mod tests {
820
#[test]
821
#[cfg(unix)]
822
fn socket_messages() {
823
- use std::{io, os::unix::io::AsRawFd};
+ use std::{
824
+ io,
825
+ os::unix::io::{AsRawFd, FromRawFd, OwnedFd},
826
+ };
827
828
use super::Socket;
829
use crate::{prelude::*, Cancellable, UnixFDMessage};
@@ -832,8 +835,8 @@ mod tests {
832
835
panic!("{}", io::Error::last_os_error());
833
836
}
834
837
(
- Socket::from_fd(fds[0]).unwrap(),
- Socket::from_fd(fds[1]).unwrap(),
838
+ Socket::from_fd(OwnedFd::from_raw_fd(fds[0])).unwrap(),
839
+ Socket::from_fd(OwnedFd::from_raw_fd(fds[1])).unwrap(),
840
)
841
};
842
0 commit comments