Minor rewrites

This commit is contained in:
dasha_uwu authored and Jason Volk committed 2026-01-26 19:28:56 +00:00
1 parent bb26b749ae
commit 3caab50e0d
6 files changed
+51 -58

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ pub(crate) async fn search_users_route(
) -> Result<search_users::v3::Response> {
let sender_user = body.sender_user();
let limit = usize::try_from(body.limit)
.map_or(LIMIT_DEFAULT, usize::from)
.unwrap_or(LIMIT_DEFAULT)
.min(LIMIT_MAX);
let search_term = body.search_term.to_lowercase();