diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2025-01-01 19:04:32 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2025-01-01 19:04:32 +0100 |
commit | ed5578accc1325a69fca4ea23a2e5e69476c2036 (patch) | |
tree | b93710f4b207d9b70e247dad79b32a65e60f7966 | |
parent | 59758226f37bd8f10afcf135b807bdea15a5d5ff (diff) | |
download | icaltool-ed5578accc1325a69fca4ea23a2e5e69476c2036.tar.gz icaltool-ed5578accc1325a69fca4ea23a2e5e69476c2036.tar.bz2 icaltool-ed5578accc1325a69fca4ea23a2e5e69476c2036.zip |
Fix tests
-rw-r--r-- | src/main.rs | 2 |
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) { |