Commit 38f8df0
committed
docs(kvs): correct MvccSource Arc<dyn> over-claim (CodeRabbit)
`MvccSource::next_version` uses return-position `impl Trait` (RPITIT), which
makes the trait non-object-safe, so the `Arc<dyn MvccSource>` the doc comment
claimed will not compile. The trait is `#[allow(dead_code)]` (no consumer
yet); rather than box the future (a per-call heap allocation for an unused
trait-object capability), correct the doc to state zero-cost static dispatch
and that a boxed-future variant can be added if runtime-pluggable sources are
ever needed. Doc-only change.
https://claude.ai/code/session_01R9AWgFa65uPnLyS2my2d2R1 parent 5997eea commit 38f8df0
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
0 commit comments