rate_limiter: replace #[allow(dead_code)] with expect()

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2026-06-03 14:36:24 +02:00
committed by Rob Bradford
parent 04322c185c
commit 0a3f594f4f

View File

@@ -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())