We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ab12e4 + b3d4764 commit 82f39b3Copy full SHA for 82f39b3
twilight-gateway/src/ratelimiter.rs
@@ -188,6 +188,8 @@ fn nonreserved_commands_per_reset(heartbeat_interval: Duration) -> u8 {
188
189
#[cfg(test)]
190
mod tests {
191
+ #![allow(clippy::unchecked_time_subtraction)]
192
+
193
use super::{CommandRatelimiter, PERIOD, nonreserved_commands_per_reset};
194
use static_assertions::assert_impl_all;
195
use std::{fmt::Debug, future::poll_fn, time::Duration};
twilight-http-ratelimiting/src/actor.rs
@@ -336,6 +336,8 @@ pub async fn runner(
336
337
338
339
340
341
use std::time::{Duration, Instant};
342
use tokio::time;
343
0 commit comments