last_modified is no longer required
This commit is contained in:
parent
5c3c5c8090
commit
cbb4378581
6 changed files with 20 additions and 98 deletions
|
@ -2,7 +2,6 @@ use std::fmt::{Display, Formatter};
|
|||
use std::str::FromStr;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use chrono::{Utc, DateTime};
|
||||
use url::Url;
|
||||
|
||||
use crate::resource::Resource;
|
||||
|
@ -30,13 +29,6 @@ impl Item {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn last_modified(&self) -> DateTime<Utc> {
|
||||
match self {
|
||||
Item::Event(e) => e.last_modified(),
|
||||
Item::Task(t) => t.last_modified(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn sync_status(&self) -> &SyncStatus {
|
||||
match self {
|
||||
Item::Event(e) => e.sync_status(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue