Unwraps when parsing config values
LiHRaM opened this issue · comments
Hilmar Gústafsson commented
There are some unwrap
s 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.