From 3c8505ffb4b26c418eb63debdee8f13d3f071e34 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 5 Nov 2018 22:22:15 +0100 Subject: [PATCH] Fix 1.28 build for real --- components/front_matter/src/page.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/front_matter/src/page.rs b/components/front_matter/src/page.rs index 7ee4049..74f8299 100644 --- a/components/front_matter/src/page.rs +++ b/components/front_matter/src/page.rs @@ -1,12 +1,11 @@ use std::collections::HashMap; use chrono::prelude::*; -use serde::Deserialize; use tera::{Map, Value}; use toml; use errors::Result; -use utils::de::fix_toml_dates; +use utils::de::{fix_toml_dates, from_toml_datetime}; /// The front matter of every page #[derive(Debug, Clone, PartialEq, Deserialize)] @@ -17,7 +16,7 @@ pub struct PageFrontMatter { /// Description in that appears when linked, e.g. on twitter pub description: Option, /// Date if we want to order pages (ie blog post) - #[serde(default, deserialize_with = "utils::de::from_toml_datetime")] + #[serde(default, deserialize_with = "from_toml_datetime")] pub date: Option, /// Chrono converted datetime #[serde(default, skip_deserializing)]