fix has_annotations

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2024-02-14 15:14:23 +01:00
parent 458e22b577
commit 112ddc615b
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -284,7 +284,7 @@ impl Method {
/// If the fields has annotations
pub fn has_annotations(&self) -> bool {
!self.annotations.is_empty()
|| !self
|| self
.parameters_annotations
.iter()
.any(|list| !list.is_empty())