[Auto] lib/domain/timetrack: 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:46:47 +02:00 committed by Matthias Beyer
parent 5f38265545
commit 601dd405b6
3 changed files with 9 additions and 9 deletions

View file

@ -17,9 +17,9 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
pub const CRATE_NAME : &'static str = "timetrack";
pub const DATE_TIME_FORMAT : &'static str = "%Y-%m-%dT%H:%M:%S";
pub const DATE_TIME_START_HEADER_PATH : &'static str = "timetrack.start";
pub const DATE_TIME_END_HEADER_PATH : &'static str = "timetrack.end";
pub const DATE_TIME_TAG_HEADER_PATH : &'static str = "timetrack.tag";
pub const CRATE_NAME : &str = "timetrack";
pub const DATE_TIME_FORMAT : &str = "%Y-%m-%dT%H:%M:%S";
pub const DATE_TIME_START_HEADER_PATH : &str = "timetrack.start";
pub const DATE_TIME_END_HEADER_PATH : &str = "timetrack.end";
pub const DATE_TIME_TAG_HEADER_PATH : &str = "timetrack.tag";

View file

@ -40,8 +40,8 @@ impl<'a> CreateTimeTrackIter<'a>
{
pub fn new(inner: TagStoreIdIter, store: &'a Store) -> CreateTimeTrackIter<'a> {
CreateTimeTrackIter {
inner: inner,
store: store,
inner,
store,
}
}

View file

@ -19,7 +19,7 @@
use chrono::naive::NaiveDateTime as NDT;
use failure::Fallible as Result;
use failure::Error;
use failure::err_msg;
use crate::tag::TimeTrackingTag as TTT;
@ -48,7 +48,7 @@ impl Iterator for TagIter {
.map(|t| if is_tag_str(&t).is_ok() {
Ok(TTT::from(t))
} else {
Err(Error::from(err_msg("Error in Tag format")))
Err(err_msg("Error in Tag format"))
})
}
}