File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ use stackable_operator::{
3333 status:: condition:: { ClusterCondition , HasStatusCondition } ,
3434} ;
3535use std:: collections:: BTreeMap ;
36- use std:: ops:: Deref ;
3736use strum:: { Display , EnumIter , EnumString , IntoEnumIterator } ;
3837
3938pub const AIRFLOW_UID : i64 = 1000 ;
@@ -351,12 +350,12 @@ impl AirflowCluster {
351350 /// this will extract a `Vec<Volume>` from `Option<Vec<Volume>>`
352351 pub fn volumes ( & self ) -> Vec < Volume > {
353352 let tmp = self . spec . cluster_config . volumes . as_ref ( ) ;
354- tmp. iter ( ) . flat_map ( |v| v . deref ( ) . clone ( ) ) . collect ( )
353+ tmp. iter ( ) . flat_map ( |v| ( * v ) . clone ( ) ) . collect ( )
355354 }
356355
357356 pub fn volume_mounts ( & self ) -> Vec < VolumeMount > {
358357 let tmp = self . spec . cluster_config . volume_mounts . as_ref ( ) ;
359- let mut mounts: Vec < VolumeMount > = tmp. iter ( ) . flat_map ( |v| v . deref ( ) . clone ( ) ) . collect ( ) ;
358+ let mut mounts: Vec < VolumeMount > = tmp. iter ( ) . flat_map ( |v| ( * v ) . clone ( ) ) . collect ( ) ;
360359 if self . git_sync ( ) . is_some ( ) {
361360 mounts. push ( VolumeMount {
362361 name : GIT_CONTENT . into ( ) ,
You can’t perform that action at this time.
0 commit comments