From 73d6eb07f3fbbb82f538c3cf652d6c29bc3944f0 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Thu, 5 Sep 2024 13:44:13 +0100 Subject: [PATCH] clippy fixes --- rust/capture/src/limiters/redis.rs | 2 +- rust/capture/src/sinks/kafka.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/capture/src/limiters/redis.rs b/rust/capture/src/limiters/redis.rs index 2764d4520d95b..723d3ad0e1991 100644 --- a/rust/capture/src/limiters/redis.rs +++ b/rust/capture/src/limiters/redis.rs @@ -90,7 +90,7 @@ impl RedisLimiter { updated, redis, redis_key_prefix: redis_key_prefix.unwrap_or_default(), - limiter_cache_key: limiter_cache_key, + limiter_cache_key, }) } diff --git a/rust/capture/src/sinks/kafka.rs b/rust/capture/src/sinks/kafka.rs index ab8fee9c73ae8..f78acd1bacb25 100644 --- a/rust/capture/src/sinks/kafka.rs +++ b/rust/capture/src/sinks/kafka.rs @@ -186,7 +186,7 @@ impl KafkaSink { exceptions_topic: config.kafka_exceptions_topic, heatmaps_topic: config.kafka_heatmaps_topic, replay_overflow_topic: config.kafka_replay_overflow_topic, - replay_overflow_limiter: replay_overflow_limiter, + replay_overflow_limiter, }) } @@ -236,7 +236,7 @@ impl KafkaSink { None => false, Some(limiter) => { limiter - .is_limited(&session_id, QuotaResource::Recordings) + .is_limited(session_id, QuotaResource::Recordings) .await } };