Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Closing as duplicate: PR #3754 (merged, dad9ddd) landed the same repair while this PR was being prepared. Salvage check per protocol: I diffed this PR's changes against merged main — the derive is back directly above |
Fixes #3751
What
PR #3738 (for #3059, merged as 5fa0650) inserted
parse_result_limitbetween#[derive(Subcommand, Debug)]andpub enum Commandinpkgs/id/src/cli.rs, and changedparse_find_argsinpkgs/id/src/repl/runner.rsto returnResult<FindArgs>without updating two of its tests. pkgs/id has not compiled on main since.This PR is the minimal repair, no behaviour change:
cli.rs: moveparse_result_limit(with its doc comment) above the "Available CLI commands" doc block, so the derive sits directly onpub enum Commandagain. The function body and everyvalue_parser = parse_result_limitcall site are byte-identical.runner.rs: add.unwrap()at the threeparse_find_argscall sites intest_parse_find_args_invalid_format_is_errorandtest_parse_find_args_valid_format_is_stored, matching the already-updated neighbouring tests. The parser still records invalid formats inFindArgs.format_errorrather than erroring, so both tests keep their original meaning.Verification (laptop, this branch + the #1732 change cherry-picked on top for the combined run)
cargo test --lib directory_auth— 15 passed (this is the run that surfaced the break; it could not compile before this fix)cargo test --lib parse_find_args— 13 passedcargo test --lib zero— 19 passed (the id(find/search/show/peek): a zero count is accepted everywhere — '--first 0'/'--last 0' report 'no matches found' for queries that do match, and 'peek --lines 0' renders a preview with no content lines #3059 zero-limit tests)cargo test --lib result_limit— 4 passedFound by queue task 4789 (lane B) while verifying PR #3748.
Need help on this PR? Tag
@codesmith-botwith what you need.