Do not use "mut" here, we don't need it

This commit is contained in:
Matthias Beyer 2016-07-15 21:27:28 +02:00
parent 8d89f7bf74
commit 1f50301ffa

View file

@ -46,8 +46,8 @@ fn main() {
fn tw_hook(rt: &Runtime) { fn tw_hook(rt: &Runtime) {
let subcmd = rt.cli().subcommand_matches("tw-hook").unwrap(); let subcmd = rt.cli().subcommand_matches("tw-hook").unwrap();
if subcmd.is_present("add") { if subcmd.is_present("add") {
let stdin = stdin(); let stdin = stdin();
let mut stdin = stdin.lock(); let stdin = stdin.lock();
match Task::import(rt.store(), stdin) { match Task::import(rt.store(), stdin) {
Ok((_, uuid)) => info!("Task {} stored in imag", uuid), Ok((_, uuid)) => info!("Task {} stored in imag", uuid),