aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 4aeca51..30534dc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -91,7 +91,7 @@ fn match_event(event: &ical::parser::ical::component::IcalEvent, pattern: &str)
#[cfg(test)]
fn test_match_event_helper(pattern: &str) -> Vec<ical::parser::ical::component::IcalEvent> {
- let cal = read_icalendar_from_file("test/fixtures/events.ics").unwrap();
+ let cal = read_icalendar_from_file(&PathBuf::from("test/fixtures/events.ics")).unwrap();
cal[0].events.iter()
.filter_map(|event| {
if match_event(&event, pattern) {