reduce warnings

This commit is contained in:
mario 2016-06-30 19:02:12 +02:00
parent 5f1e9d6b30
commit 8c93e54939

View file

@ -18,7 +18,7 @@ use std::process::{Command, Stdio};
use std::io::stdin; use std::io::stdin;
use std::io::BufRead; use std::io::BufRead;
use task_hookrs::import::{import, import_task, import_tasks}; use task_hookrs::import::{import_task, import_tasks};
use libimagrt::runtime::Runtime; use libimagrt::runtime::Runtime;
use libimagtodo::task::IntoTask; use libimagtodo::task::IntoTask;
@ -93,7 +93,7 @@ fn main() {
// per usage und wants one (the second one) back. // per usage und wants one (the second one) back.
let mut counter = 0; let mut counter = 0;
let stdin = stdin(); let stdin = stdin();
let mut stdin = stdin.lock(); let stdin = stdin.lock();
if let Ok(ttasks) = import_tasks(stdin) { if let Ok(ttasks) = import_tasks(stdin) {
for ttask in ttasks { for ttask in ttasks {
if counter % 2 == 1 { if counter % 2 == 1 {