about summary refs log tree commit diff
path: root/src/librustc_errors/snippet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_errors/snippet.rs')
-rw-r--r--src/librustc_errors/snippet.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_errors/snippet.rs b/src/librustc_errors/snippet.rs
index a39e19f0bf7..0660590a725 100644
--- a/src/librustc_errors/snippet.rs
+++ b/src/librustc_errors/snippet.rs
@@ -152,7 +152,7 @@ impl Annotation {
             //       |
             //
             // Note that this would be the complete output users would see.
-            label.len() > 0
+            !label.is_empty()
         } else {
             false
         }