Skip to content

Commit

Permalink
Merge pull request #890 from psychon/fix-unused-qualifcations
Browse files Browse the repository at this point in the history
Fix unused_qualifications warnings
  • Loading branch information
mergify[bot] authored Oct 14, 2023
2 parents 4fcd1c6 + d26ce46 commit 87fc371
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions x11rb/src/rust_connection/stream.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use rustix::fd::AsFd;
use rustix::fd::{AsFd, BorrowedFd};
use std::io::{IoSlice, Result};
use std::net::TcpStream;
#[cfg(unix)]
use std::os::unix::io::{AsRawFd, BorrowedFd, IntoRawFd, OwnedFd, RawFd};
use std::os::unix::io::{AsRawFd, IntoRawFd, OwnedFd, RawFd};
#[cfg(unix)]
use std::os::unix::net::UnixStream;
#[cfg(windows)]
Expand Down Expand Up @@ -224,8 +224,7 @@ impl DefaultStream {
Ok((result, peer_addr::local()))
}

#[allow(unused_qualifications)]
fn as_fd(&self) -> rustix::fd::BorrowedFd<'_> {
fn as_fd(&self) -> BorrowedFd<'_> {
self.inner.as_fd()
}
}
Expand Down

0 comments on commit 87fc371

Please sign in to comment.