Skip to content

Commit 82f39b3

Browse files
authored
Merge branch 'main' into AE/add_app_emoji_example
2 parents 3ab12e4 + b3d4764 commit 82f39b3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

twilight-gateway/src/ratelimiter.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ fn nonreserved_commands_per_reset(heartbeat_interval: Duration) -> u8 {
188188

189189
#[cfg(test)]
190190
mod tests {
191+
#![allow(clippy::unchecked_time_subtraction)]
192+
191193
use super::{CommandRatelimiter, PERIOD, nonreserved_commands_per_reset};
192194
use static_assertions::assert_impl_all;
193195
use std::{fmt::Debug, future::poll_fn, time::Duration};

twilight-http-ratelimiting/src/actor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ pub async fn runner(
336336

337337
#[cfg(test)]
338338
mod tests {
339+
#![allow(clippy::unchecked_time_subtraction)]
340+
339341
use std::time::{Duration, Instant};
340342
use tokio::time;
341343

0 commit comments

Comments
 (0)