as_str() instead of to_str() for loglevel

This commit is contained in:
Stefan Gehr 2021-08-04 22:01:59 +02:00
parent 28c8b89d71
commit 09007b78ac

View File

@ -89,7 +89,7 @@ fn main() -> std::io::Result<()> {
}
let config = load_config()?;
log::set_max_level(config.log_level().to_str().parse().unwrap());
log::set_max_level(config.log_level().as_str().parse().unwrap());
let opts: Opts = Opts::parse_args_default_or_exit();