Skip to content

docs(net): give the Route doctest's create_track an inferable info - #7992

Merged
kixelated merged 1 commit into
mainfrom
fix/route-doctest-infer
Nov 6, 2026
Merged

kixelated merged 1 commit into
mainfrom
fix/route-doctest-infer

Conversation

@kixelated

@kixelated kixelated commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

The Route doctest from moq-dev/moq#7806 passed Default::default() to create_track. That can't infer impl Into<Option<track::Info>>, so cargo test -p moq-net --doc fails on main with E0283. CI's Check doesn't run doctests, so the failure only showed up in the land fixer's local validation of moq-dev/moq#7988.

This passes None instead, as ietf/session.rs already does.

cargo test -p moq-net --doc passes.

Review

Head f37b8af: local review skipped as justified — a one-line doctest change (Default::default() → None) matching the existing ietf/session.rs call; pullfrog approved this head. Verified cargo test -p moq-net --doc passes on this head merged with main 0672ad5 (10 passed, 2 ignored; 3 passed).

🤖 Generated with Claude Code

(Written by Claude Opus 5.5)

Default::default() can't satisfy impl Into<Option<track::Info>>, so
cargo test --doc failed with E0283 after #7806.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3c7f092a-d4c7-4f69-9236-6c050aac4f4c
Commits

Reviewing files that changed from the base of the PR and between d6fcf6d and f37b8af.

Files selected for processing: 1

  • rs/moq-net/src/model/origin.rs
  • 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

@kixelated kixelated left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review by review (OpenAI)

Reviewed head: f37b8af.

No actionable findings. The one-line Route doctest change gives create_track an inferable Option<track::Info>; its implementation uses unwrap_or_default(), so None retains the intended default track metadata. This is an appropriately scoped fix; no code changes suggested.

Verification: inspected the complete diff, surrounding doctest, API implementation, and current discussion/reviews through GitHub. No earlier code-review findings were present. Static review only: I did not run cargo test -p moq-net --doc or other checks, and the PR's reported doctest pass was not independently reproduced.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Route doctest: create_track("catalog.json", None) replaces Default::default(), which cannot infer impl Into<Option<track::Info>> (E0283) because both Option<track::Info> and track::Info satisfy the bound. None is also the form documented on Broadcast::create_track and used in ietf/session.rs.
  • Verified locally: cargo test -p moq-net --doc passes, including the Route doctest at line 2932.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 6b79a60 Nov 6, 2026
9 checks passed
@kixelated
kixelated deleted the fix/route-doctest-infer branch November 6, 2026 07:20
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