Skip to content

Commit

Permalink
cfg block
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Soltis authored and Greg Soltis committed May 24, 2023
1 parent 533b29a commit 79ea68a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/globwalk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ mod test {
std::fs::File::create(tmp.path().join(file)).unwrap();
}

if cfg!(unix) {
#[cfg(unix)]
{
// these files/symlinks won't work on Windows
std::fs::File::create(tmp.path().join("-")).unwrap();
std::fs::File::create(tmp.path().join("]")).unwrap();
Expand Down

0 comments on commit 79ea68a

Please sign in to comment.