Skip to content

Commit

Permalink
w: Fix clippy warnings
Browse files Browse the repository at this point in the history
Only import crates when they're being used on a target platform.
  • Loading branch information
fortifiedhill committed Apr 6, 2024
1 parent e4a9c7c commit 0a85e96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/uu/w/src/w.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.

#[cfg(not(windows))]
#[cfg(target_os = "linux")]
use chrono::{self, Datelike};
use clap::crate_version;
use clap::{Arg, ArgAction, Command};
#[cfg(not(windows))]
#[cfg(target_os = "linux")]
use libc::{sysconf, _SC_CLK_TCK};
use std::process;
#[cfg(not(windows))]
#[cfg(target_os = "linux")]
use std::{collections::HashMap, fs, path::Path};
#[cfg(not(windows))]
#[cfg(target_os = "linux")]
use uucore::utmpx::Utmpx;
use uucore::{error::UResult, format_usage, help_about, help_usage};

Expand Down

0 comments on commit 0a85e96

Please sign in to comment.