diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-05-26 13:14:24 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2022-05-26 13:14:24 +0200 |
| commit | 5fc8a8e22799b6d2d768e5cbb59003930631c2f2 (patch) | |
| tree | beb0859c2eba3e0f578962a73590eacde9b2f988 /compiler/rustc_log | |
| parent | 8bf9c20765bd206dd5ec3c5840cee315c17521aa (diff) | |
| download | rust-5fc8a8e22799b6d2d768e5cbb59003930631c2f2.tar.gz rust-5fc8a8e22799b6d2d768e5cbb59003930631c2f2.zip | |
clippy::complexity fixes
clone_on_copy useless_format bind_instead_of_map filter_map_identity useless_conversion map_flatten unnecessary_unwrap
Diffstat (limited to 'compiler/rustc_log')
| -rw-r--r-- | compiler/rustc_log/src/lib.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/rustc_log/src/lib.rs b/compiler/rustc_log/src/lib.rs index c152815eeca..f2ec80b0c1b 100644 --- a/compiler/rustc_log/src/lib.rs +++ b/compiler/rustc_log/src/lib.rs @@ -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() |
