]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_data_structures/profiling.rs
Auto merge of #69833 - Centril:rollup-mh74yue, r=Centril
[rust.git] / src / librustc_data_structures / profiling.rs
index f2c80510f226945413530eef779359c3b5e0f577..a70314c35c07c9cee94c035162425c6b3fe39fd8 100644 (file)
@@ -425,7 +425,7 @@ pub fn new(
             }
 
             // Warn about any unknown event names
-            if unknown_events.len() > 0 {
+            if !unknown_events.is_empty() {
                 unknown_events.sort();
                 unknown_events.dedup();