Skip to content

Commit ed0492a

Browse files
cakebakersylvestre
authored andcommitted
uptime: fix "unused import" warnings with musl
1 parent 64d308d commit ed0492a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/by-util/test_uptime.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ use uutests::new_ucmd;
1212
use uutests::util::TestScenario;
1313
use uutests::util_name;
1414

15-
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))]
15+
#[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
1616
use bincode::{config, serde::encode_to_vec};
1717
use regex::Regex;
18-
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))]
18+
#[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
1919
use serde::Serialize;
20-
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))]
20+
#[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
2121
use serde_big_array::BigArray;
22-
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))]
22+
#[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
2323
use std::fs::File;
24-
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))]
24+
#[cfg(not(any(target_os = "macos", target_os = "openbsd", target_env = "musl")))]
2525
use std::{io::Write, path::PathBuf};
2626

2727
#[test]

0 commit comments

Comments
 (0)