summaryrefslogtreecommitdiffstats
path: root/src/date.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/date.rs')
-rw-r--r--src/date.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/date.rs b/src/date.rs
index ab9d66c..ff99cb8 100644
--- a/src/date.rs
+++ b/src/date.rs
@@ -6,7 +6,6 @@
//! Module for wrapping chrono::naive::datetime::NaiveDateTime
-use std::error::Error;
use std::ops::{Deref, DerefMut};
use serde::Serialize;
@@ -78,7 +77,7 @@ impl<'de> Deserialize<'de> for Date {
{
NaiveDateTime::parse_from_str(value, TASKWARRIOR_DATETIME_TEMPLATE)
.map(|d| Date(d))
- .map_err(|e| SerdeError::custom(e.description()))
+ .map_err(|e| SerdeError::custom(e.to_string()))
}
}