[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:
parent
5f38265545
commit
601dd405b6
3 changed files with 9 additions and 9 deletions
|
@ -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";
|
||||
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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"))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue