Skip to content

Commit 7b52162

Browse files
committed
clippy
1 parent 26c37f1 commit 7b52162

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

rust/operator-binary/src/controller.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ fn build_rolegroup_service(
763763
Ok(Service {
764764
metadata: ObjectMetaBuilder::new()
765765
.name_and_namespace(hive)
766-
.name(&rolegroup.object_name())
766+
.name(rolegroup.object_name())
767767
.ownerreference_from_resource(hive, None, Some(true))
768768
.context(ObjectMissingMetadataForOwnerRefSnafu)?
769769
.with_recommended_labels(build_recommended_labels(
@@ -873,10 +873,8 @@ fn build_metastore_rolegroup_statefulset(
873873
s3.add_volumes_and_mounts(&mut pod_builder, vec![&mut container_builder])
874874
.context(ConfigureS3Snafu)?;
875875

876-
if s3.tls.uses_tls() {
877-
if !s3.tls.uses_tls_verification() {
878-
S3TlsNoVerificationNotSupportedSnafu.fail()?;
879-
}
876+
if s3.tls.uses_tls() && !s3.tls.uses_tls_verification() {
877+
S3TlsNoVerificationNotSupportedSnafu.fail()?;
880878
}
881879
}
882880

@@ -1069,7 +1067,7 @@ fn build_metastore_rolegroup_statefulset(
10691067
Ok(StatefulSet {
10701068
metadata: ObjectMetaBuilder::new()
10711069
.name_and_namespace(hive)
1072-
.name(&rolegroup_ref.object_name())
1070+
.name(rolegroup_ref.object_name())
10731071
.ownerreference_from_resource(hive, None, Some(true))
10741072
.context(ObjectMissingMetadataForOwnerRefSnafu)?
10751073
.with_recommended_labels(build_recommended_labels(

rust/operator-binary/src/kerberos.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use stackable_operator::kube::ResourceExt;
1616
use std::collections::BTreeMap;
1717

1818
#[derive(Snafu, Debug)]
19+
#[allow(clippy::enum_variant_names)] // all variants have the same prefix: `Add`
1920
pub enum Error {
2021
#[snafu(display("failed to add Kerberos secret volume"))]
2122
AddKerberosSecretVolume {

0 commit comments

Comments
 (0)