Format code

This commit is contained in:
Matthias Beyer 2016-07-06 19:57:49 +02:00
parent b2eb2de3fd
commit 0752058cf5
1 changed files with 14 additions and 10 deletions

View File

@ -164,17 +164,21 @@ fn list(rt: &Runtime) {
if verbose {
args.clear();
args.push(format!("uuid:{} information", uuid));
let tw_process = Command::new("task").stdin(Stdio::null()).args(&args).spawn()
let tw_process = Command::new("task")
.stdin(Stdio::null())
.args(&args)
.spawn()
.unwrap_or_else(|e| {
trace_error(&e);
panic!("failed");
});
let output = tw_process.wait_with_output().unwrap_or_else(|e| {
panic!("failed to unwrap output: {}", e);
});
let outstring = String::from_utf8(output.stdout).unwrap_or_else(|e| {
panic!("failed to execute: {}", e);
});
let output = tw_process
.wait_with_output()
.unwrap_or_else(|e| panic!("failed to unwrap output: {}", e));
let outstring = String::from_utf8(output.stdout)
.unwrap_or_else(|e| panic!("failed to execute: {}", e));
println!("{}", outstring);
} else {
println!("{}", match uuid {