Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80de3ae

Browse files
cakebakerRenjiSann
authored andcommitted
du: fix dead code warnings in test on Android
1 parent 3e5d265 commit 80de3ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/by-util/test_du.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const SUB_DIR: &str = "subdir/deeper";
2222
const SUB_DEEPER_DIR: &str = "subdir/deeper/deeper_dir";
2323
const SUB_DIR_LINKS: &str = "subdir/links";
2424
const SUB_DIR_LINKS_DEEPER_SYM_DIR: &str = "subdir/links/deeper_dir";
25-
#[cfg(not(target_os = "openbsd"))]
25+
#[cfg(all(not(target_os = "android"), not(target_os = "openbsd")))]
2626
const SUB_FILE: &str = "subdir/links/subwords.txt";
27-
#[cfg(not(target_os = "openbsd"))]
27+
#[cfg(all(not(target_os = "android"), not(target_os = "openbsd")))]
2828
const SUB_LINK: &str = "subdir/links/sublink.txt";
2929

3030
#[test]

0 commit comments

Comments
 (0)