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 0e306d3 commit 25264dbCopy full SHA for 25264db
gio/src/socket.rs
@@ -819,7 +819,10 @@ mod tests {
819
#[test]
820
#[cfg(unix)]
821
fn socket_messages() {
822
- use std::{io, os::unix::io::AsRawFd};
+ use std::{
823
+ io,
824
+ os::unix::io::{AsRawFd, FromRawFd, OwnedFd},
825
+ };
826
827
use super::Socket;
828
use crate::{prelude::*, Cancellable, UnixFDMessage};
@@ -831,8 +834,8 @@ mod tests {
831
834
panic!("{}", io::Error::last_os_error());
832
835
}
833
836
(
- Socket::from_fd(fds[0]).unwrap(),
- Socket::from_fd(fds[1]).unwrap(),
837
+ Socket::from_fd(OwnedFd::from_raw_fd(fds[0])).unwrap(),
838
+ Socket::from_fd(OwnedFd::from_raw_fd(fds[1])).unwrap(),
839
)
840
};
841
0 commit comments