diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-08-09 16:29:56 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2022-08-09 16:55:22 +0200 |
commit | f9f6362bc9022e7f1f792ba397910a459482aa25 (patch) | |
tree | cb76df060f0557cb63fc8e35b24820dc10b7aa8d /src | |
parent | 2b910b8a50c42a80a78ca88197e40a7b6f3e6352 (diff) |
Remove redundant closure
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/date.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.rs b/src/date.rs index 717ca37..4cba5b2 100644 --- a/src/date.rs +++ b/src/date.rs @@ -76,7 +76,7 @@ impl<'de> Deserialize<'de> for Date { E: SerdeError, { NaiveDateTime::parse_from_str(value, TASKWARRIOR_DATETIME_TEMPLATE) - .map(|d| Date(d)) + .map(Date) .map_err(|e| SerdeError::custom(e.to_string())) } } |