Skip to content

Commit

Permalink
Only do import on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Apr 9, 2024
1 parent 4ac70dd commit aa06922
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ use rip2::{copy_file, move_file};
use rstest::rstest;
use std::fs;
use std::os::unix;
use std::os::unix::fs::FileTypeExt;
use std::os::unix::net::UnixListener;
use std::path::PathBuf;
use std::process;
use tempfile::tempdir;

#[cfg(target_os = "macos")]
use std::os::unix::fs::FileTypeExt;

#[rstest]
fn test_validation() {
let bad_completions = Args {
Expand Down

0 comments on commit aa06922

Please sign in to comment.