mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
04322c185c
commit
0a3f594f4f
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user