Skip to content

Commit 2212c9f

Browse files
JBYoshiJonathanWoollett-Light
authored andcommitted
Add an explicit allow for code covered by proofs
This code shoud already be safe because of debug-mode assertions and formal proofs done ahead of time. Signed-off-by: Jonathan Browne <[email protected]>
1 parent f720a26 commit 2212c9f

File tree

1 file changed

+1
-0
lines changed
  • src/vmm/src/rate_limiter

1 file changed

+1
-0
lines changed

src/vmm/src/rate_limiter/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ impl TokenBucket {
116116
}
117117

118118
// Replenishes token bucket based on elapsed time. Should only be called internally by `Self`.
119+
#[allow(clippy::cast_possible_truncation)]
119120
fn auto_replenish(&mut self) {
120121
// Compute time passed since last refill/update.
121122
let now = Instant::now();

0 commit comments

Comments
 (0)