Skip to content

Commit 1a3f95f

Browse files
committed
Use ==
1 parent 53ef278 commit 1a3f95f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/stackable-operator/src/builder/pod/container.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl ContainerBuilder {
218218
pub fn add_volume_mount_struct(&mut self, volume_mount: VolumeMount) -> Result<&mut Self> {
219219
if let Some(existing_volume_mount) = self.volume_mounts.get(&volume_mount.mount_path) {
220220
ensure!(
221-
existing_volume_mount.eq(&volume_mount),
221+
existing_volume_mount == &volume_mount,
222222
ClashingVolumeMountMountPathSnafu {
223223
existing_volume_mount: existing_volume_mount.clone(),
224224
new_volume_mount: volume_mount,

crates/stackable-operator/src/builder/pod/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl PodBuilder {
293293
pub fn add_volume(&mut self, volume: Volume) -> Result<&mut Self> {
294294
if let Some(existing_volume) = self.volumes.get(&volume.name) {
295295
ensure!(
296-
existing_volume.eq(&volume),
296+
existing_volume == &volume,
297297
ClashingVolumeNameSnafu {
298298
volume_name: volume.name.clone(),
299299
existing_volume: existing_volume.clone(),

0 commit comments

Comments
 (0)