mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-31 16:40:37 +01:00
Fix clippy
This commit is contained in:
parent
e4fba3345f
commit
bcac39a276
1 changed files with 2 additions and 2 deletions
|
@ -183,8 +183,8 @@ pub(super) async fn worker<B>(
|
||||||
// (waffle)
|
// (waffle)
|
||||||
|
|
||||||
let now = Instant::now();
|
let now = Instant::now();
|
||||||
let min_back = now - MINUTE;
|
let min_back = now.checked_sub(MINUTE).unwrap_or(now);
|
||||||
let sec_back = now - SECOND;
|
let sec_back = now.checked_sub(SECOND).unwrap_or(now);
|
||||||
|
|
||||||
// make history and requests_sent up-to-date
|
// make history and requests_sent up-to-date
|
||||||
while let Some((_, time)) = history.front() {
|
while let Some((_, time)) = history.front() {
|
||||||
|
|
Loading…
Reference in a new issue