Skip to content

Commit c1ef41e

Browse files
authored
Fix warnings introduced by the Rust 1.71 upgrade (#310)
1 parent 49c68aa commit c1ef41e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rust/crd/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ use stackable_operator::{
3333
status::condition::{ClusterCondition, HasStatusCondition},
3434
};
3535
use std::collections::BTreeMap;
36-
use std::ops::Deref;
3736
use strum::{Display, EnumIter, EnumString, IntoEnumIterator};
3837

3938
pub 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(),

0 commit comments

Comments
 (0)