From 0a3f594f4f4905fe8b1f8bc389885c24b1928eb5 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Wed, 3 Jun 2026 14:36:24 +0200 Subject: [PATCH] rate_limiter: replace #[allow(dead_code)] with expect() On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster --- rate_limiter/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rate_limiter/src/lib.rs b/rate_limiter/src/lib.rs index 0239bd4ef..d80bc4e5a 100644 --- a/rate_limiter/src/lib.rs +++ b/rate_limiter/src/lib.rs @@ -546,7 +546,7 @@ pub(crate) mod unit_tests { } // After a restore, we cannot be certain that the last_update field has the same value. - #[allow(dead_code)] + #[expect(dead_code)] fn partial_eq(&self, other: &TokenBucket) -> bool { (other.capacity() == self.capacity()) && (other.one_time_burst() == self.one_time_burst())