Skip to content

Commit

Permalink
Ran cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Nov 24, 2019
1 parent 62a7218 commit 743b2f3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,15 @@ where
.map(|p| format!("POSIX file \"{}\"", p))
.collect::<Vec<String>>()
.join(", ");
let script = format!(
"tell application \"Finder\" to delete {{ {} }}",
posix_files
);
let script = format!("tell application \"Finder\" to delete {{ {} }}", posix_files);

let argv: Vec<OsString> = vec!["-e".into(), script.into()];
command.args(argv);

// Execute command
let result = command.output().map_err(|e| {
Error::new(
ErrorKind::PlatformApi {
function_name: APPLESCRIPT,
code: e.raw_os_error(),
},
ErrorKind::PlatformApi { function_name: APPLESCRIPT, code: e.raw_os_error() },
Box::new(e),
)
})?;
Expand Down

0 comments on commit 743b2f3

Please sign in to comment.