diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -191,8 +191,8 @@ pub struct Config { } impl Config { - pub fn load(toml: &str) -> Config { - toml::from_str(toml).expect("Couldn't parse config.toml") + pub fn load(toml: &str) -> Result<Config, toml::de::Error> { + toml::from_str(toml) } } |
