]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_log/src/lib.rs
Rollup merge of #97028 - ridwanabdillahi:pretty-printer, r=michaelwoerister
[rust.git] / compiler / rustc_log / src / lib.rs
index c152815eeca68e408d9f470021f73992f6b56bc0..f2ec80b0c1b6369676dfbb31903ad9fe9621ec48 100644 (file)
@@ -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()