1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

uptime: fix "unused import" warnings with musl

This commit is contained in:
Daniel Hofstetter 2025-05-01 10:15:03 +02:00 committed by Sylvestre Ledru
parent 64d308db0e
commit ed0492a046

View file

@ -12,16 +12,16 @@ use uutests::new_ucmd;
use uutests::util::TestScenario; use uutests::util::TestScenario;
use uutests::util_name; use uutests::util_name;
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))] #[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
use bincode::{config, serde::encode_to_vec}; use bincode::{config, serde::encode_to_vec};
use regex::Regex; use regex::Regex;
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))] #[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
use serde::Serialize; use serde::Serialize;
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))] #[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
use serde_big_array::BigArray; use serde_big_array::BigArray;
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))] #[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
use std::fs::File; use std::fs::File;
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))] #[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
use std::{io::Write, path::PathBuf}; use std::{io::Write, path::PathBuf};
#[test] #[test]