otoxteam / web_ical

web_ical is an esay iCalendar Rust library. It’s goals are to read and write ics web files (Google Calendar, Airbnb Calendar and more) data in a developer-friendly way.
MIT License
15 stars 11 forks source link

Calendar::new() should return a Result<> #3

Closed clawoflight closed 4 years ago

clawoflight commented 4 years ago

There are a lot of unwrap calls in here, which makes this library unusable in practice. An application doesn't work when a thread can panic at any time due to HTTP or parse errors :)

Please pass errors to the caller, e.g. from NaiveDateTime::parse, or from reqwest.