summaryrefslogtreecommitdiffstats
path: root/src/khline.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/khline.rs')
-rw-r--r--src/khline.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/khline.rs b/src/khline.rs
index 8cf324f..d52c825 100644
--- a/src/khline.rs
+++ b/src/khline.rs
@@ -45,7 +45,8 @@ impl KhLine {
self == &KhLine::from(event)
}
- pub fn matches(&self, event: &IcalVEvent) -> bool {
+ //TODO deprecated
+ fn matches(&self, event: &IcalVEvent) -> bool {
self == &KhLine::from(event)
}
@@ -84,7 +85,7 @@ impl From<&KhEvent> for KhLine {
impl From<&IcalVCalendar> for KhLine {
fn from(cal: &IcalVCalendar) -> Self {
- (&cal.get_principal_event()).into()
+ (&cal.get_principal_khevent()).into()
}
}
@@ -247,7 +248,7 @@ mod tests {
let khline = KhLine::from(&cal);
- assert!(khline.matches(&cal.get_principal_event()));
+ assert!(khline.matches_khevent(&cal.get_principal_khevent()));
}
#[test]