diff options
Diffstat (limited to 'src')
-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 50f3eaa..a7747c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,7 +44,7 @@ fn print_event(event: &ical::parser::ical::component::IcalEvent) { match p.name.as_ref() { "DTSTART" => start = parse_datetime(p.value.clone()), "DTEND" => end = parse_datetime(p.value.clone()), - "SUMMARY" => summary = p.value.clone().unwrap_or_else(String::new), + "SUMMARY" => summary = p.value.clone().unwrap_or_default(), _ => (), } } |