Skip to content

Commit

Permalink
fix: compile tests correctly on windows
Browse files Browse the repository at this point in the history
Code referenced is slightly different between platforms, so we need to make some `use` directives
conditional.
  • Loading branch information
jacderida committed Jun 14, 2023
1 parent bae0b4a commit 2987030
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ mod test {
use std::fs::File;
#[cfg(unix)]
use std::os::unix::fs::PermissionsExt;
#[cfg(windows)]
use std::path::PathBuf;
#[cfg(unix)]
use std::path::{Path, PathBuf};

/// These may seem pointless, but they are useful for when the tests run on different
Expand Down

0 comments on commit 2987030

Please sign in to comment.