Skip to content

Commit f4bf898

Browse files
drinkcatRenjiSann
andauthored
tests/by-util/test_cp.rs: Merge #[cfg]
Co-authored-by: Dorian Péron <72708393+RenjiSann@users.noreply.github.com>
1 parent 4b11692 commit f4bf898

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/by-util/test_cp.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3103,8 +3103,7 @@ fn test_cp_fifo() {
31033103
assert_eq!(permission, "prwx-wx--x".to_string());
31043104
}
31053105

3106-
#[cfg(unix)]
3107-
#[cfg(not(target_vendor = "apple"))]
3106+
#[cfg(all(unix, not(target_vendor = "apple")))]
31083107
fn find_other_group(current: u32) -> Option<u32> {
31093108
// Get the first group that doesn't match current
31103109
nix::unistd::getgroups().ok()?.iter().find_map(|group| {

0 commit comments

Comments
 (0)