Skip to content

Commit c4e05e4

Browse files
author
oech3
committed
drop nix::libc from *.rs nix is not used
1 parent 47d7c76 commit c4e05e4

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

src/uucore/src/lib/features/i18n/datetime.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ pub fn get_locale_months() -> Option<&'static [Vec<u8>; 12]> {
176176
not(target_os = "redox")
177177
))]
178178
fn get_locale_months_inner() -> Option<[Vec<u8>; 12]> {
179-
use nix::libc;
180179
use std::ffi::CStr;
181180

182181
let abmon_items: [libc::nl_item; 12] = [

src/uucore/src/lib/mods/panic.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ pub fn mute_sigpipe_panic() {
4949
/// variable. If set to "default", it restores SIGPIPE to SIG_DFL.
5050
#[cfg(unix)]
5151
pub fn preserve_inherited_sigpipe() {
52-
use nix::libc;
53-
5452
// Check if parent specified that SIGPIPE should be default
5553
if std::env::var_os("RUST_SIGPIPE").is_some_and(|v| v == "default") {
5654
unsafe { libc::signal(libc::SIGPIPE, libc::SIG_DFL) };

0 commit comments

Comments
 (0)