Skip to content

Commit 6fc441d

Browse files
committed
chore: Fix Clippy's mismatched_lifetime_syntaxes lint
1 parent 871b508 commit 6fc441d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • rust/operator-binary/src/crd/role

rust/operator-binary/src/crd/role/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ impl AnyConfig {
403403

404404
// Logging config is distinct between each role, due to the different enum types,
405405
// so provide helpers for containers that are common between all roles.
406-
pub fn kafka_logging(&self) -> Cow<ContainerLogConfig> {
406+
pub fn kafka_logging(&'_ self) -> Cow<'_, ContainerLogConfig> {
407407
match self {
408408
AnyConfig::Broker(node) => node.logging.for_container(&broker::BrokerContainer::Kafka),
409409
AnyConfig::Controller(node) => node
@@ -412,7 +412,7 @@ impl AnyConfig {
412412
}
413413
}
414414

415-
pub fn vector_logging(&self) -> Cow<ContainerLogConfig> {
415+
pub fn vector_logging(&'_ self) -> Cow<'_, ContainerLogConfig> {
416416
match &self {
417417
AnyConfig::Broker(broker_config) => broker_config
418418
.logging

0 commit comments

Comments
 (0)