as_str() instead of to_str() for loglevel
This commit is contained in:
parent
28c8b89d71
commit
09007b78ac
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user