diff --git a/hive-forge/src/verbs/repo_search.rs b/hive-forge/src/verbs/repo_search.rs index e5754d96..382d1076 100644 --- a/hive-forge/src/verbs/repo_search.rs +++ b/hive-forge/src/verbs/repo_search.rs @@ -39,7 +39,7 @@ pub struct Args { /// Propagates transport errors from the Forgejo search call or JSON /// serialisation errors when emitting `--json` output. pub fn run(client: &Client, args: Args) -> Result<()> { - let limit = u32::try_from(args.limit.min(u32::MAX as u64)).unwrap_or(u32::MAX); + let limit = u32::try_from(args.limit.min(u64::from(u32::MAX))).unwrap_or(u32::MAX); let results = client .api() .repo_search(RepoSearchQuery {