forked from model-checking/verify-rust-std
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup sys module to match house style
- Loading branch information
1 parent
440ec83
commit 85e4ba0
Showing
6 changed files
with
15 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
#![forbid(unsafe_op_in_unsafe_fn)] | ||
|
||
cfg_if::cfg_if! { | ||
if #[cfg(unix)] { | ||
mod unix; | ||
pub(crate) use unix::{AnonPipe, pipe}; | ||
|
||
#[cfg(all(test, not(miri)))] | ||
mod tests; | ||
pub use unix::{AnonPipe, pipe}; | ||
} else if #[cfg(windows)] { | ||
mod windows; | ||
pub(crate) use windows::{AnonPipe, pipe}; | ||
|
||
#[cfg(all(test, not(miri)))] | ||
mod tests; | ||
pub use windows::{AnonPipe, pipe}; | ||
} else { | ||
mod unsupported; | ||
pub(crate) use unsupported::{AnonPipe, pipe}; | ||
pub use unsupported::{AnonPipe, pipe}; | ||
} | ||
} |
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