jonhoo / buzz

A simple system tray application for notifying about unseen e-mail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unwraps when parsing config values

LiHRaM opened this issue · comments

There are some unwraps in the code which could be replaced with match statements to make the general experience of building a config less confusing.

For example, given the following configuration:

[gmail]
server = "imap.gmail.com"
port = "993"
username = "example@gmail.com"
pwcmd = "secret-tool lookup name example"

We try to convert the value "993" to an integer, which panics.