reduce warnings lib

This commit is contained in:
mario 2016-06-30 19:06:26 +02:00
parent 8c93e54939
commit bbb4866fa0
4 changed files with 4 additions and 5 deletions

View file

@ -1,8 +1,7 @@
use std::error::Error;
use std::clone::Clone;
use std::fmt::Error as FmtError;
use std::fmt::{Debug, Display, Formatter};
use std::fmt;
use std::fmt::{Display, Formatter};
/// Enum of Error Types, as of now we have two:
/// * ConversionError: for Errors concerning conversion failures from task_hookrs::task::Task to

View file

@ -2,8 +2,8 @@ extern crate semver;
extern crate uuid;
extern crate toml;
extern crate task_hookrs;
#[macro_use] extern crate libimagstore;
extern crate task_hookrs;
module_entry_path_mod!("todo", "0.1.0");

View file

@ -1,4 +1,4 @@
use error::{TodoError, TodoErrorKind};
use error::TodoError;
use std::result::Result as RResult;

View file

@ -1,4 +1,3 @@
use std::ops::Deref;
use std::collections::BTreeMap;
use toml::Value;
@ -68,6 +67,7 @@ impl<'a> IntoTask<'a> for TTask {
}
Ok(Some(_)) => { }
Err(e) => {
return Err(TodoError::new(TodoErrorKind::StoreError, Some(Box::new(e))))
}
}
match header.set("todo.uuid", Value::String(format!("{}",uuid))) {