Skip to content

fix: resolve Rust 2021 prefix errors in prewarm format! calls - #181

Merged
Likhithsai2580 merged 5 commits into
auto/round-2026-10-12T1709Zfrom
fix/auto-route-prefix-regression
Oct 16, 2026
Merged

Likhithsai2580 merged 5 commits into
auto/round-2026-10-12T1709Zfrom
fix/auto-route-prefix-regression

Conversation

@Likhithsai2580

Copy link
Copy Markdown
Member

Fixes CI regression on auto/round-2026-10-12T1709Z.

Root cause: format!("{}", url())?q=... — the ? try operator followed immediately by an identifier (q=...) is parsed as a Rust 2021 prefixed identifier/literal, causing 'prefix X is unknown' compile errors.

Fix: move query parameters inside the format string: format!("{}/search?q=...", url())

Fixes all 8 occurrences in the prewarm block and handle_search/handle_search_fast.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1a4fc014-6f91-456d-a774-c8f9b8c59e4b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Likhithsai2580 added 3 commits October 16, 2026 18:44
- Rename 4-arg searxng_url(base, query, geo, lang) to searxng_url_with_geo
  to resolve E0428 (name defined multiple times with 0-arg searxng_url())
- Fix E0308: pass &searxng_url() where &str expected in searxng_url_with_categories callers
- Fix E0308: change Vec<&str> to Vec<String> for searx_base_urls
- Fix searx_instance_keys_for signature to accept &[String]
- starts_with(&searxng_url()) instead of starts_with(searxng_url())
- test arrays use String instead of &str literals
- key_of closure takes &[String] instead of &[&str]
- vpn_only test uses Vec<String> instead of Vec<&str>
@Likhithsai2580
Likhithsai2580 merged commit da6cdb3 into auto/round-2026-10-12T1709Z Oct 16, 2026
3 checks passed
@Likhithsai2580
Likhithsai2580 deleted the fix/auto-route-prefix-regression branch October 16, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant