Kaynağa Gözat

category iter

Thomas 1 yıl önce
ebeveyn
işleme
2cc93825d6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/variants.rs

+ 1 - 1
src/variants.rs

@@ -436,7 +436,7 @@ impl Variants {
                 if e.annotations
                     .iter()
                     .filter(|e| match e {
-                        AnnotationType::VariantCategory(vc) => vc == cat,
+                        AnnotationType::VariantCategory(vc) => *vc == cat,
                         _ => false,
                     })
                     .count()