Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed Dec 6, 2024
1 parent 47b0847 commit d30b27d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ mod platform;

#[cfg(target_os = "macos")]
pub mod macos;
#[cfg(all(target_os = "macos",test))]
#[cfg(all(target_os = "macos", test))]
mod test_macos;
#[cfg(target_os = "macos")]
use macos as platform;
Expand Down
6 changes: 1 addition & 5 deletions src/test_macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ fn create_hfs_volume() -> std::io::Result<(impl Drop, tempfile::TempDir)> {
Command::new("hdiutil").args(["create", "-size", "1m", "-fs", "HFS+"]).arg(&dmg_file).status()?;

// Mount dmg file into temporary location
Command::new("hdiutil")
.args(["attach", "-nobrowse", "-mountpoint"])
.arg(tmp.path())
.arg(&dmg_file)
.status()?;
Command::new("hdiutil").args(["attach", "-nobrowse", "-mountpoint"]).arg(tmp.path()).arg(&dmg_file).status()?;

// Ensure that the mount point is always cleaned up
defer::defer({
Expand Down

0 comments on commit d30b27d

Please sign in to comment.