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 {