diff options
Diffstat (limited to 'bin/domain/imag-timetrack/src/week.rs')
-rw-r--r-- | bin/domain/imag-timetrack/src/week.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/domain/imag-timetrack/src/week.rs b/bin/domain/imag-timetrack/src/week.rs index 90da88b6..c8a74520 100644 --- a/bin/domain/imag-timetrack/src/week.rs +++ b/bin/domain/imag-timetrack/src/week.rs @@ -22,13 +22,13 @@ use std::str::FromStr; use filters::filter::Filter; use chrono::NaiveDateTime; +use failure::Error; use libimagerror::trace::trace_error; use libimagerror::trace::MapErrTrace; use libimagerror::iter::TraceIterator; use libimagerror::io::ToExitCode; use libimagstore::store::FileLockEntry; -use libimagtimetrack::error::TimeTrackError as TTE; use libimagtimetrack::timetrackingstore::TimeTrackStore; use libimagtimetrack::timetracking::TimeTracking; use libimagtimetrack::tag::TimeTrackingTag; @@ -50,7 +50,7 @@ pub fn week(rt: &Runtime) -> i32 { let start = match cmd .value_of("start") .map(|s| { - ::chrono::naive::NaiveDateTime::from_str(s).map_err(TTE::from) + ::chrono::naive::NaiveDateTime::from_str(s).map_err(Error::from) }) { None => NaiveDate::from_isoywd(this_week.year(), this_week.week(), Weekday::Mon) @@ -65,7 +65,7 @@ pub fn week(rt: &Runtime) -> i32 { let end = match cmd .value_of("end") .map(|s| { - ::chrono::naive::NaiveDateTime::from_str(s).map_err(TTE::from) + ::chrono::naive::NaiveDateTime::from_str(s).map_err(Error::from) }) { None => NaiveDate::from_isoywd(this_week.year(), this_week.week(), Weekday::Sun) @@ -104,7 +104,7 @@ pub fn week(rt: &Runtime) -> i32 { .map_err_trace_exit_unwrap(1) .trace_unwrap() .filter(|e| filter.filter(e)) - .map(|e| -> Result<_, TTE> { + .map(|e| -> Result<_, Error> { debug!("Processing {:?}", e.get_location()); let tag = e.get_timetrack_tag()?; |