Thomas 7 mesiacov pred
rodič
commit
eba1b016d6
1 zmenil súbory, kde vykonal 6 pridanie a 1 odobranie
  1. 6 1
      src/variant/variant_collection.rs

+ 6 - 1
src/variant/variant_collection.rs

@@ -614,7 +614,12 @@ impl Variant {
     }
 
     pub fn callers(&self) -> String {
-        let mut callers: Vec<String> = self.annotations.iter().map(|c| c.to_string()).collect();
+        let mut callers: Vec<String> = self
+            .annotations
+            .iter()
+            .filter(|a| matches!(a, Annotation::Callers(..)))
+            .map(|c| c.to_string())
+            .collect();
         callers.sort();
         callers.join(", ")
     }