fixed parentheses

This commit is contained in:
mario 2016-06-30 18:59:53 +02:00
parent 2144c8c425
commit 5f1e9d6b30

View file

@ -63,7 +63,8 @@ fn main() {
} }
}; };
if let Ok(ttask) = import_task(&line.as_str()) { if let Ok(ttask) = import_task(&line.as_str()) {
print!("{}", match serde_json::ser::to_string(&ttask) { let uuid = *ttask.uuid();
println!("{}", match serde_json::ser::to_string(&ttask) {
Ok(val) => val, Ok(val) => val,
Err(e) => { Err(e) => {
error!("{}", e); error!("{}", e);
@ -71,7 +72,10 @@ fn main() {
} }
}); });
match ttask.into_filelockentry(rt.store()) { match ttask.into_filelockentry(rt.store()) {
Ok(val) => val, Ok(val) => {
println!("Task {} stored in imag", uuid);
val
},
Err(e) => { Err(e) => {
trace_error(&e); trace_error(&e);
error!("{}", e); error!("{}", e);