Skip to content

Commit

Permalink
fs: Make AsFd compatible with Rust 1.63
Browse files Browse the repository at this point in the history
The std::os::fd module is only available with Rust 1.66,
but before that and starting with Rust 1.63, only the std::os::unix::io
module is available.

Fixes #25

Fixes: da8b417 ("fs: Use OwnedFd and AsFd instead of AsRawFd")
Signed-off-by: Mickaël Salaün <mic@digikod.net>
  • Loading branch information
l0kod committed Jan 6, 2023
1 parent da8b417 commit 99628b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ use enumflags2::{bitflags, make_bitflags, BitFlags};
use std::fs::OpenOptions;
use std::io::Error;
use std::mem::zeroed;
use std::os::fd::{AsFd, BorrowedFd, OwnedFd};
use std::os::unix::fs::OpenOptionsExt;
use std::os::unix::io::AsRawFd;
use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, OwnedFd};
use std::path::Path;

#[cfg(test)]
Expand Down

0 comments on commit 99628b1

Please sign in to comment.