summaryrefslogtreecommitdiffstats
path: root/src/unix.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-22 20:54:34 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-22 20:54:34 -0400
commit121d656fdf12b1aedd4014352a3857f8ab1608df (patch)
tree660a9a3a0052d7ae865ae288938d03bfb99e276a /src/unix.rs
parent8f0ca37df04355de492b6c26e13999fef35975dd (diff)
cargo fmt
Diffstat (limited to 'src/unix.rs')
-rw-r--r--src/unix.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/unix.rs b/src/unix.rs
index db8d7af..796c0fc 100644
--- a/src/unix.rs
+++ b/src/unix.rs
@@ -75,8 +75,8 @@ pub fn open_with_entry(paths: &[PathBuf], entry: &mimetype::JoshutoMimetypeEntry
Some(true) => {
command.stdout(process::Stdio::null());
command.stderr(process::Stdio::null());
- },
- _ => {},
+ }
+ _ => {}
}
if let Some(args) = entry.args.as_ref() {
@@ -85,14 +85,12 @@ pub fn open_with_entry(paths: &[PathBuf], entry: &mimetype::JoshutoMimetypeEntry
command.args(paths.iter().map(|path| path.as_os_str()));
match command.spawn() {
- Ok(mut handle) => {
- match entry.fork {
- Some(true) => {}
- _ => match handle.wait() {
- Ok(_) => {}
- Err(e) => eprintln!("{}", e),
- },
- }
+ Ok(mut handle) => match entry.fork {
+ Some(true) => {}
+ _ => match handle.wait() {
+ Ok(_) => {}
+ Err(e) => eprintln!("{}", e),
+ },
},
Err(e) => eprintln!("{}", e),
};