-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
device: Use
OwnedFd
type and bump MSRV to 1.66
The first new commit 22a2365 on `next` switches to the `RawFd` type from the `std::os::fd` module which is only available since Rust 1.66. This module also provides an `OwnedFd` type which already has a `close()` call in the `Drop` implementation, and implements the desired `AsRawFd` (and `AsFd` and `IntoRawFd`) traits. Note that these types were already stabilized in Rust 1.63 under `std::os::unix::io`, which is now merely a reexport of `std::os::fd`. This also replaces the forgotten `.fd()` calls with `.as_raw_fd()` from from commit 17c2871.
- Loading branch information
Showing
6 changed files
with
65 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters