Skip to content

Commit

Permalink
Implement AsFd for all entry sizes (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxalica authored Jan 22, 2024
1 parent dd7cce6 commit cc8060a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ impl<S: squeue::EntryMarker, C: cqueue::EntryMarker> AsRawFd for IoUring<S, C> {
}

#[cfg(feature = "io_safety")]
impl AsFd for IoUring {
impl<S: squeue::EntryMarker, C: cqueue::EntryMarker> AsFd for IoUring<S, C> {
fn as_fd(&self) -> BorrowedFd<'_> {
self.fd.as_fd()
}
Expand Down

0 comments on commit cc8060a

Please sign in to comment.