diff --git a/src/api/client/search.rs b/src/api/client/search.rs
index e88558fdd7b2d28445337a0f251afb5b13e63af9..d2a1668f64102ca2b290537171892527dd53f599 100644
--- a/src/api/client/search.rs
+++ b/src/api/client/search.rs
@@ -118,7 +118,7 @@ pub(crate) async fn search_events_route(body: Ruma<search_events::v3::Request>)
 	};
 
 	let mut results = Vec::new();
-	let next_batch: usize = skip.saturating_add(limit);
+	let next_batch = skip.saturating_add(limit);
 
 	for _ in 0..next_batch {
 		if let Some(s) = searches