fixed parentheses
This commit is contained in:
parent
2144c8c425
commit
5f1e9d6b30
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue