Cargo Clippy

This commit is contained in:
Nyaaori 2022-10-31 09:31:17 +01:00
parent 2a52f666dc
commit 00996dd834
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E
3 changed files with 6 additions and 4 deletions

View file

@ -103,7 +103,7 @@ pub async fn search_events_route(
.take(limit)
.collect();
let next_batch = if results.len() < limit as usize {
let next_batch = if results.len() < limit {
None
} else {
Some((skip + limit).to_string())