|
@@ -614,7 +614,12 @@ impl Variant {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
pub fn callers(&self) -> String {
|
|
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.sort();
|
|
|
callers.join(", ")
|
|
callers.join(", ")
|
|
|
}
|
|
}
|