]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/backtrace.rs
Auto merge of #68943 - ecstatic-morse:no-useless-drop-on-enum-variants, r=matthewjasper
[rust.git] / src / libstd / backtrace.rs
index a1c9aa75d779a82e58e647d733752388fcb5b5b0..97db0ff3791d728f00fa24312607c7f0409ca157 100644 (file)
@@ -304,7 +304,7 @@ fn create(ip: usize) -> 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 {