jonhoo / buzz

A simple system tray application for notifying about unseen e-mail
Apache License 2.0
138 stars 12 forks source link

Handle possible parse failures in config #13

Closed LiHRaM closed 4 years ago

LiHRaM commented 4 years ago

Closes #12.

This PR uses match instead of unwrap to handle possible failures in type conversions for the values in the configuration.

In its current state, it continues on failure, meaning that if the first section is has incorrect types, subsequent sections may still work.

jonhoo commented 4 years ago

Ah, neat, thanks!