fix(hive-forge): use u64::from for repo-search limit clamp (clippy cast_lossless)
This commit is contained in:
parent
327a3bc3bc
commit
9ad94190e6
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue