Repository navigation
docs(net): give the Route doctest's create_track an inferable info - #7992
Conversation
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>
|
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 25 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. |
kixelated
left a comment
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Routedoctest:create_track("catalog.json", None)replacesDefault::default(), which cannot inferimpl Into<Option<track::Info>>(E0283) because bothOption<track::Info>andtrack::Infosatisfy the bound.Noneis also the form documented onBroadcast::create_trackand used inietf/session.rs.- Verified locally:
cargo test -p moq-net --docpasses, including theRoutedoctest at line 2932.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

The
Routedoctest from moq-dev/moq#7806 passedDefault::default()tocreate_track. That can't inferimpl Into<Option<track::Info>>, socargo test -p moq-net --docfails onmainwithE0283. 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
Noneinstead, asietf/session.rsalready does.cargo test -p moq-net --docpasses.Review
Head f37b8af: local review skipped as justified — a one-line doctest change (
Default::default()→None) matching the existingietf/session.rscall; pullfrog approved this head. Verifiedcargo test -p moq-net --docpasses on this head merged with main 0672ad5 (10 passed, 2 ignored; 3 passed).🤖 Generated with Claude Code
(Written by Claude Opus 5.5)