Skip to content

Commit a356105

Browse files
committed
Cleanup lib.rs
1 parent 26cb573 commit a356105

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/lib.rs

+8-10
Original file line numberDiff line numberDiff line change
@@ -127,27 +127,25 @@ cfg_if! {
127127
}
128128
}
129129

130-
#[cfg(feature = "std")]
131-
extern crate std;
132-
133130
mod error;
134131
pub use crate::error::Error;
135132

136133
#[allow(dead_code)]
137134
mod util;
135+
// Unlike the other Unix, Fuchsia and iOS don't use the libc to make any calls.
138136
#[cfg(any(
139-
target_os = "netbsd",
140-
target_os = "openbsd",
141137
target_os = "android",
142-
target_os = "linux",
138+
target_os = "dragonfly",
143139
target_os = "emscripten",
144-
target_os = "solaris",
145-
target_os = "illumos",
146-
target_os = "macos",
147140
target_os = "freebsd",
148141
target_os = "haiku",
142+
target_os = "illumos",
143+
target_os = "linux",
144+
target_os = "macos",
145+
target_os = "netbsd",
146+
target_os = "openbsd",
149147
target_os = "redox",
150-
target_os = "dragonfly",
148+
target_os = "solaris",
151149
))]
152150
#[allow(dead_code)]
153151
mod util_libc;

0 commit comments

Comments
 (0)