Skip to content

Commit fe1749d

Browse files
committed
PascalCase error variants
1 parent e9e182e commit fe1749d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/stackable-webhook/src/servers/conversion.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ pub enum ConversionWebhookError {
4646
ConvertCaToPem { source: x509_cert::der::Error },
4747

4848
#[snafu(display("failed to reconcile CRDs"))]
49-
ReconcileCRDs {
49+
ReconcileCrds {
5050
#[snafu(source(from(ConversionWebhookError, Box::new)))]
5151
source: Box<ConversionWebhookError>,
5252
},
5353

5454
#[snafu(display("failed to update CRD {crd_name:?}"))]
55-
UpdateCRD {
55+
UpdateCrd {
5656
source: stackable_operator::kube::Error,
5757
crd_name: String,
5858
},
@@ -237,7 +237,7 @@ impl ConversionWebhookServer {
237237
current_cert,
238238
)
239239
.await
240-
.context(ReconcileCRDsSnafu)?;
240+
.context(ReconcileCrdsSnafu)?;
241241

242242
try_join!(
243243
Self::run_webhook_server(server),
@@ -273,7 +273,7 @@ impl ConversionWebhookServer {
273273
current_cert,
274274
)
275275
.await
276-
.context(ReconcileCRDsSnafu)?;
276+
.context(ReconcileCrdsSnafu)?;
277277
}
278278
Ok(())
279279
}
@@ -323,7 +323,7 @@ impl ConversionWebhookServer {
323323
crd_api
324324
.patch(&crd_name, &patch_params, &patch)
325325
.await
326-
.with_context(|_| UpdateCRDSnafu {
326+
.with_context(|_| UpdateCrdSnafu {
327327
crd_name: crd_name.to_string(),
328328
})?;
329329
}

0 commit comments

Comments
 (0)