Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 17, 2021
1 parent 428ff97 commit 5bc5e8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,10 @@ mod unix {
.unwrap_or_else(|| Err(io::Error::from(io::ErrorKind::Other)))
}

pub fn with<T: AsRef<OsStr> + Sized>(path: T, app: impl Into<String>) -> io::Result<ExitStatus> {
pub fn with<T: AsRef<OsStr> + Sized>(
path: T,
app: impl Into<String>,
) -> io::Result<ExitStatus> {
Command::new(app.into()).arg(path.as_ref()).spawn()?.wait()
}

Expand Down

0 comments on commit 5bc5e8e

Please sign in to comment.