From a29d7199b1e74831be3e58d49b2d81f40f12214e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCller?= Date: Tue, 24 Mar 2026 13:37:55 +0100 Subject: [PATCH] chore: construct roles vector via map --- rust/operator-binary/src/crd/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rust/operator-binary/src/crd/mod.rs b/rust/operator-binary/src/crd/mod.rs index 2138011c..a19b3f65 100644 --- a/rust/operator-binary/src/crd/mod.rs +++ b/rust/operator-binary/src/crd/mod.rs @@ -753,11 +753,7 @@ impl AirflowRole { } pub fn roles() -> Vec { - let mut roles = vec![]; - for role in Self::iter() { - roles.push(role.to_string()) - } - roles + Self::iter().map(|r| r.to_string()).collect() } pub fn listener_class_name(&self, airflow: &v1alpha2::AirflowCluster) -> Option {