Skip to content

Commit 5484350

Browse files
committed
wc: move use to unix only
1 parent 7521bc5 commit 5484350

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/uu/wc/src/wc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use std::{
2222
};
2323

2424
use clap::{Arg, ArgAction, ArgMatches, Command, builder::ValueParser};
25-
use rustix::fd::AsFd;
2625
use thiserror::Error;
2726
use unicode_width::UnicodeWidthChar;
2827
use utf8::{BufReadDecoder, BufReadDecoderError};
@@ -51,6 +50,8 @@ const MINIMUM_WIDTH: usize = 7;
5150
fn try_get_stdin_size() -> Option<usize> {
5251
#[cfg(unix)]
5352
{
53+
use rustix::fd::AsFd;
54+
5455
let stdin = io::stdin();
5556
let fd = stdin.as_fd();
5657

0 commit comments

Comments
 (0)