From ed0492a0466588f54cef76adbeae27b19440c3ad Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Thu, 1 May 2025 10:15:03 +0200 Subject: [PATCH] uptime: fix "unused import" warnings with musl --- tests/by-util/test_uptime.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/by-util/test_uptime.rs b/tests/by-util/test_uptime.rs index b7b4fa935..1fd65f9d6 100644 --- a/tests/by-util/test_uptime.rs +++ b/tests/by-util/test_uptime.rs @@ -12,16 +12,16 @@ use uutests::new_ucmd; use uutests::util::TestScenario; 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 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; -#[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; -#[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; -#[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}; #[test]