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::{
33
33
status:: condition:: { ClusterCondition , HasStatusCondition } ,
34
34
} ;
35
35
use std:: collections:: BTreeMap ;
36
- use std:: ops:: Deref ;
37
36
use strum:: { Display , EnumIter , EnumString , IntoEnumIterator } ;
38
37
39
38
pub const AIRFLOW_UID : i64 = 1000 ;
@@ -351,12 +350,12 @@ impl AirflowCluster {
351
350
/// this will extract a `Vec<Volume>` from `Option<Vec<Volume>>`
352
351
pub fn volumes ( & self ) -> Vec < Volume > {
353
352
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 ( )
355
354
}
356
355
357
356
pub fn volume_mounts ( & self ) -> Vec < VolumeMount > {
358
357
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 ( ) ;
360
359
if self . git_sync ( ) . is_some ( ) {
361
360
mounts. push ( VolumeMount {
362
361
name : GIT_CONTENT . into ( ) ,
You can’t perform that action at this time.
0 commit comments