File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
crates/stackable-operator/src/builder/pod Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ impl ContainerBuilder {
218
218
pub fn add_volume_mount_struct ( & mut self , volume_mount : VolumeMount ) -> Result < & mut Self > {
219
219
if let Some ( existing_volume_mount) = self . volume_mounts . get ( & volume_mount. mount_path ) {
220
220
ensure ! (
221
- existing_volume_mount. eq ( & volume_mount) ,
221
+ existing_volume_mount == & volume_mount,
222
222
ClashingVolumeMountMountPathSnafu {
223
223
existing_volume_mount: existing_volume_mount. clone( ) ,
224
224
new_volume_mount: volume_mount,
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ impl PodBuilder {
293
293
pub fn add_volume ( & mut self , volume : Volume ) -> Result < & mut Self > {
294
294
if let Some ( existing_volume) = self . volumes . get ( & volume. name ) {
295
295
ensure ! (
296
- existing_volume. eq ( & volume) ,
296
+ existing_volume == & volume,
297
297
ClashingVolumeNameSnafu {
298
298
volume_name: volume. name. clone( ) ,
299
299
existing_volume: existing_volume. clone( ) ,
You can’t perform that action at this time.
0 commit comments