mirror of
https://github.com/uutils/coreutils
synced 2024-12-12 22:32:53 +00:00
Reformat code
This commit is contained in:
parent
040c028089
commit
8c7e8c58c3
1 changed files with 5 additions and 5 deletions
10
env/env.rs
vendored
10
env/env.rs
vendored
|
@ -191,11 +191,11 @@ fn main() {
|
||||||
match opts.program {
|
match opts.program {
|
||||||
[ref prog, ..args] => {
|
[ref prog, ..args] => {
|
||||||
match std::run::process_status(prog.as_slice(), args.as_slice()) {
|
match std::run::process_status(prog.as_slice(), args.as_slice()) {
|
||||||
Some(exit) =>
|
Some(exit) =>
|
||||||
match exit {
|
std::os::set_exit_status(match exit {
|
||||||
std::io::process::ExitStatus(status) => std::os::set_exit_status(status),
|
std::io::process::ExitStatus(s) => s,
|
||||||
_ => std::os::set_exit_status(1)
|
_ => 1
|
||||||
},
|
}),
|
||||||
None => std::os::set_exit_status(1)
|
None => std::os::set_exit_status(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue