Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
codyps committed Apr 23, 2024
1 parent 84be0ad commit 66be0c1
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions ioctl-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
use std::os::raw::{c_int, c_ulong};

#[cfg(any(target_os = "linux", target_os = "macos", target_os = "openbsd", target_os = "android"))]
#[cfg(any(
target_os = "linux",
target_os = "macos",
target_os = "openbsd",
target_os = "android"
))]
#[macro_use]
mod platform;

#[cfg(any(target_os = "linux", target_os = "macos", target_os = "openbsd", target_os = "android"))]
#[cfg(any(
target_os = "linux",
target_os = "macos",
target_os = "openbsd",
target_os = "android"
))]
pub use platform::*;

extern "C" {
Expand All @@ -21,7 +31,12 @@ pub fn check_res(res: c_int) -> std::io::Result<()> {
}
}

#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "openbsd", target_os = "android")))]
#[cfg(not(any(
target_os = "linux",
target_os = "macos",
target_os = "openbsd",
target_os = "android"
)))]
use platform_not_supported;

#[cfg(doctest)]
Expand Down

0 comments on commit 66be0c1

Please sign in to comment.