about summary refs log tree commit diff
path: root/src/libstd/backtrace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/backtrace.rs')
-rw-r--r--src/libstd/backtrace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/backtrace.rs b/src/libstd/backtrace.rs
index a1c9aa75d77..97db0ff3791 100644
--- a/src/libstd/backtrace.rs
+++ b/src/libstd/backtrace.rs
@@ -304,7 +304,7 @@ impl Backtrace {
         // If no frames came out assume that this is an unsupported platform
         // since `backtrace` doesn't provide a way of learning this right now,
         // and this should be a good enough approximation.
-        let inner = if frames.len() == 0 {
+        let inner = if frames.is_empty() {
             Inner::Unsupported
         } else {
             Inner::Captured(Mutex::new(Capture {