From 3da86bc14667fdeaf44a7df982ef49ae90f1153b Mon Sep 17 00:00:00 2001 From: daladim Date: Tue, 23 Mar 2021 00:14:14 +0100 Subject: [PATCH] last_sync is no longer required --- src/cache.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cache.rs b/src/cache.rs index 3702b73..76bcb52 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -11,7 +11,6 @@ use std::ffi::OsStr; use serde::{Deserialize, Serialize}; use async_trait::async_trait; -use chrono::{DateTime, Utc}; use crate::traits::CalDavSource; use crate::traits::PartialCalendar; @@ -32,7 +31,6 @@ pub struct Cache { struct CachedData { #[serde(skip)] calendars: HashMap>>, - last_sync: Option>, } impl Cache { @@ -216,7 +214,6 @@ mod tests { let retrieved_cache = Cache::from_folder(&cache_path).unwrap(); assert_eq!(cache.backing_folder, retrieved_cache.backing_folder); - assert_eq!(cache.data.last_sync, retrieved_cache.data.last_sync); let test = cache.has_same_contents_than(&retrieved_cache).await; println!("Equal? {:?}", test); assert_eq!(test.unwrap(), true);