Skip to content

Commit

Permalink
socket: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
A6GibKm committed Jun 3, 2024
1 parent 0e306d3 commit 25264db
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gio/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,10 @@ mod tests {
#[test]
#[cfg(unix)]
fn socket_messages() {
use std::{io, os::unix::io::AsRawFd};
use std::{
io,
os::unix::io::{AsRawFd, FromRawFd, OwnedFd},
};

use super::Socket;
use crate::{prelude::*, Cancellable, UnixFDMessage};
Expand All @@ -831,8 +834,8 @@ mod tests {
panic!("{}", io::Error::last_os_error());
}
(
Socket::from_fd(fds[0]).unwrap(),
Socket::from_fd(fds[1]).unwrap(),
Socket::from_fd(OwnedFd::from_raw_fd(fds[0])).unwrap(),
Socket::from_fd(OwnedFd::from_raw_fd(fds[1])).unwrap(),
)
};

Expand Down

0 comments on commit 25264db

Please sign in to comment.