We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06f4db2 commit 44bfeddCopy full SHA for 44bfedd
1 file changed
rust/operator-binary/src/crd/mod.rs
@@ -753,11 +753,7 @@ impl AirflowRole {
753
}
754
755
pub fn roles() -> Vec<String> {
756
- let mut roles = vec![];
757
- for role in Self::iter() {
758
- roles.push(role.to_string())
759
- }
760
- roles
+ Self::iter().map(|r| r.to_string()).collect()
761
762
763
pub fn listener_class_name(&self, airflow: &v1alpha2::AirflowCluster) -> Option<String> {
0 commit comments