clippy::complexity fixes
clone_on_copy useless_format bind_instead_of_map filter_map_identity useless_conversion map_flatten unnecessary_unwrap
This commit is contained in:
parent
8bf9c20765
commit
5fc8a8e227
11 changed files with 28 additions and 45 deletions
|
@ -69,13 +69,7 @@ pub fn init_env_logger(env: &str) -> Result<(), Error> {
|
|||
|
||||
let verbose_entry_exit = match env::var_os(String::from(env) + "_ENTRY_EXIT") {
|
||||
None => false,
|
||||
Some(v) => {
|
||||
if &v == "0" {
|
||||
false
|
||||
} else {
|
||||
true
|
||||
}
|
||||
}
|
||||
Some(v) => &v != "0",
|
||||
};
|
||||
|
||||
let layer = tracing_tree::HierarchicalLayer::default()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue