[Auto] bin/core/todo: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:44:15 +02:00 committed by Matthias Beyer
parent f7f95a651f
commit e32d82f915

View file

@ -97,7 +97,7 @@ fn tw_hook(rt: &Runtime) {
.import_task_from_reader(stdin) .import_task_from_reader(stdin)
.map_err_trace_exit_unwrap(); .map_err_trace_exit_unwrap();
let _ = writeln!(rt.stdout(), "{}\nTask {} stored in imag", line, uuid) writeln!(rt.stdout(), "{}\nTask {} stored in imag", line, uuid)
.to_exit_code() .to_exit_code()
.unwrap_or_exit(); .unwrap_or_exit();
@ -174,7 +174,7 @@ fn list(rt: &Runtime) {
}; };
// and then print that // and then print that
let _ = writeln!(rt.stdout(), "{}", outstring).to_exit_code().unwrap_or_exit(); writeln!(rt.stdout(), "{}", outstring).to_exit_code().unwrap_or_exit();
}); });
res.map_err_trace().ok(); res.map_err_trace().ok();