From 112ddc615b49c319423f223e627687cad0a998fb Mon Sep 17 00:00:00 2001 From: Jean-Marie 'Histausse' Mineau Date: Wed, 14 Feb 2024 15:14:23 +0100 Subject: [PATCH] fix has_annotations --- androscalpel/src/method.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/androscalpel/src/method.rs b/androscalpel/src/method.rs index 0bf0ba2..50c8d0c 100644 --- a/androscalpel/src/method.rs +++ b/androscalpel/src/method.rs @@ -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())