Spec and plan revision 2: answer Claude Fable's review (#157)
All 19 findings answered in place; the spec ends with a finding-by- finding map. Highlights: - §7: replica revisions and a bounded dirty log; publications carry resultRevision; the surface accumulates dirty blocks across dropped and deferred renders and falls back to a full diff; a real-text-view test with ja/zh marked text. - §7 pagination: breaks keyed by block id with relative offsets, natural geometry reconstructed per block, range invalidation from the first moved break, frame height from the plan, today's measurement kept as the test oracle. - §1: a custom title area (system title hidden but set) after a spike, with a fallback; SyncStatusAnnouncer exported from rastrillo/native; the web's centring clamp in window points, moved by translation. - §6: no-longer-available, signed-out, offline-but-saved, draft and debounce rows; 401 vs 403/404. - Delete…: version-skew client rule, deploy order, full test matrix. - iPhone: inputAccessoryView, empty inputView keeps the selection, large title inside the text view's scroll view; RTL and long-language snapshots; menus aligned with the web. - Plan: S0 editor snapshots first; S2 split into S2a/S2b; iPad keeps today's layout until S5; copy review in every slice's acceptance.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+601
−329
docs/superpowers/plans/2026-11-22-native-redesign.md+168 −121docs/superpowers/specs/2026-11-22-native-redesign-design.md+433 −208
CI cancelled — superseded by a newer push — run details
CI log
=== gate ===
=== fixtures: node dependencies
added 18 packages, and audited 19 packages in 1s
5 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
=== fixtures: the save queue's retry/drop logic (F1 regression)
TAP version 13
# Subtest: a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
ok 1 - a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
---
duration_ms: 73.743989
type: 'test'
...
# Subtest: a network failure or a 5xx is retried, not dropped
ok 2 - a network failure or a 5xx is retried, not dropped
---
duration_ms: 40.435012
type: 'test'
...
# Subtest: a 500 is retried the same way a network failure is, never dropped
ok 3 - a 500 is retried the same way a network failure is, never dropped
---
duration_ms: 41.322629
type: 'test'
...
# Subtest: an edit made while a save is on the wire waits for it, and both stay owed until answered
ok 4 - an edit made while a save is on the wire waits for it, and both stay owed until answered
---
duration_ms: 1.570854
type: 'test'
...
# Subtest: a save that fails while a later edit waits is retried first, with the later edit behind it
ok 5 - a save that fails while a later edit waits is retried first, with the later edit behind it
---
duration_ms: 1.754522
type: 'test'
...
# Subtest: a refusal is final and is never merged into the edit that waited behind it
ok 6 - a refusal is final and is never merged into the edit that waited behind it
---
duration_ms: 0.968094
type: 'test'
...
# Subtest: flush() resolves once every earlier edit is answered: true if saved, false if refused
ok 7 - flush() resolves once every earlier edit is answered: true if saved, false if refused
---
duration_ms: 1.935553
type: 'test'
...
# Subtest: the queue says saving, not ok, while an answered save leaves another to send
ok 8 - the queue says saving, not ok, while an answered save leaves another to send
---
duration_ms: 0.771209
type: 'test'
...
# Subtest: a save is sent keepalive, and given up if it is never answered
ok 9 - a save is sent keepalive, and given up if it is never answered
---
duration_ms: 22.587555
type: 'test'
...
# Subtest: a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
ok 10 - a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
---
duration_ms: 1.568792
type: 'test'
...
# Subtest: an update bigger than maxBatchBytes still goes, on its own
ok 11 - an update bigger than maxBatchBytes still goes, on its own
---
duration_ms: 0.676159
type: 'test'
...
# Subtest: a save never answered is given up, retried with a real request, and its late answer ignored
ok 12 - a save never answered is given up, retried with a real request, and its late answer ignored
---
duration_ms: 0.818665
type: 'test'
...
# Subtest: resume sends again at once what was on the wire as the page left, without saying it failed
ok 13 - resume sends again at once what was on the wire as the page left, without saying it failed
---
duration_ms: 0.774793
type: 'test'
...
# Subtest: a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
ok 14 - a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
---
duration_ms: 0.968255
type: 'test'
...
# Subtest: a save refused with no answer says retrying only if the server cannot be reached either
ok 15 - a save refused with no answer says retrying only if the server cannot be reached either
---
duration_ms: 1.043345
type: 'test'
...
# Subtest: retries the browser refuses while the server answers back off, and reset once one is answered
ok 16 - retries the browser refuses while the server answers back off, and reset once one is answered
---
duration_ms: 2.700232
type: 'test'
...
# Subtest: reachable tries a keepalive request, then an ordinary one
ok 17 - reachable tries a keepalive request, then an ordinary one
---
duration_ms: 0.498088
type: 'test'
...
# Subtest: a large save is gzipped, and goes keepalive if what is sent fits
ok 18 - a large save is gzipped, and goes keepalive if what is sent fits
---
duration_ms: 2.461591
type: 'test'
...
# Subtest: a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
ok 19 - a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
---
duration_ms: 76.408499
type: 'test'
...
# Subtest: a refused save that was not gzipped is not sent again
ok 20 - a refused save that was not gzipped is not sent again
---
duration_ms: 2.073042
type: 'test'
...
1..20
# tests 20
# suites 0
# pass 20
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 336.06229
=== fixtures: the resync retry/backoff state machine (fix round 2 regression)
TAP version 13
# Subtest: a resync that fails is retried with backoff until it succeeds, without ever running twice at once
ok 1 - a resync that fails is retried with backoff until it succeeds, without ever running twice at once
---
duration_ms: 1.890212
type: 'test'
...
# Subtest: the browser's online event retries immediately, not just on the next backoff tick
ok 2 - the browser's online event retries immediately, not just on the next backoff tick
---
duration_ms: 0.302998
type: 'test'
...
# Subtest: reportDivergence before any failure runs the first attempt without a caller ever calling online
ok 3 - reportDivergence before any failure runs the first attempt without a caller ever calling online
---
duration_ms: 0.94947
type: 'test'
...
1..3
# tests 3
# suites 0
# pass 3
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 61.486674
=== fixtures: what a resync carries, and the replay of a waiting paste
TAP version 13
# Subtest: a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
ok 1 - a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
---
duration_ms: 22.648548
type: 'test'
...
# Subtest: a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
ok 2 - a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
---
duration_ms: 4.094969
type: 'test'
...
# Subtest: a paste that waited for its font is kept: (g) the refused x after the paste point
ok 3 - a paste that waited for its font is kept: (g) the refused x after the paste point
---
duration_ms: 3.108839
type: 'test'
...
# Subtest: a paste that waited for its font is kept: (c) two refused x, the paste after the second
ok 4 - a paste that waited for its font is kept: (c) two refused x, the paste after the second
---
duration_ms: 3.029339
type: 'test'
...
# Subtest: a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
ok 5 - a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
---
duration_ms: 2.903431
type: 'test'
...
# Subtest: a paste that waited for its font is kept: (e) the paste over "paragraph.x"
ok 6 - a paste that waited for its font is kept: (e) the paste over "paragraph.x"
---
duration_ms: 4.197807
type: 'test'
...
# Subtest: a paste that waited for its font is kept: (f) a refused deletion elsewhere
ok 7 - a paste that waited for its font is kept: (f) a refused deletion elsewhere
---
duration_ms: 4.335113
type: 'test'
...
# Subtest: a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
ok 8 - a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
---
duration_ms: 3.006482
type: 'test'
...
# Subtest: a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
ok 9 - a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
---
duration_ms: 3.872283
type: 'test'
...
# Subtest: a paste that waited for its font is kept: (k) a colleague appended where the x was refused
ok 10 - a paste that waited for its font is kept: (k) a colleague appended where the x was refused
---
duration_ms: 3.215282
type: 'test'
...
# Subtest: a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
ok 11 - a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
---
duration_ms: 1.864258
type: 'test'
...
# Subtest: a paste made elsewhere carries as its own updates, not a replay
ok 12 - a paste made elsewhere carries as its own updates, not a replay
---
duration_ms: 1.564415
type: 'test'
...
# Subtest: the replay is one change for an undo manager tracking the carried origin
ok 13 - the replay is one change for an undo manager tracking the carried origin
---
duration_ms: 2.905886
type: 'test'
...
# Subtest: every update written on top of the refused text is held back, not only the first
ok 14 - every update written on top of the refused text is held back, not only the first
---
duration_ms: 1.548266
type: 'test'
...
# Subtest: a Backspace over the refused text is held back
ok 15 - a Backspace over the refused text is held back
---
duration_ms: 0.924064
type: 'test'
...
# Subtest: of an update that partly took, the part that took is posted, and nothing the server would hold pending
ok 16 - of an update that partly took, the part that took is posted, and nothing the server would hold pending
---
duration_ms: 1.78577
type: 'test'
...
# Subtest: an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
ok 17 - an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
---
duration_ms: 1.541142
type: 'test'
...
# Subtest: a paste elsewhere is posted and a keystroke after the refused x is not
ok 18 - a paste elsewhere is posted and a keystroke after the refused x is not
---
duration_ms: 1.193947
type: 'test'
...
# Subtest: took reads all, some and none from the update itself
ok 19 - took reads all, some and none from the update itself
---
duration_ms: 1.171018
type: 'test'
...
# Subtest: a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
ok 20 - a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
---
duration_ms: 2.130943
type: 'test'
...
# Subtest: a paste right after a refused repeated letter lands where it was made
ok 21 - a paste right after a refused repeated letter lands where it was made
---
duration_ms: 2.495243
type: 'test'
...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
ok 22 - a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
---
duration_ms: 2.184952
type: 'test'
...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
ok 23 - a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
---
duration_ms: 1.166525
type: 'test'
...
# Subtest: the keeper groups the updates of one held change into one entry, and hands the entries over once
ok 24 - the keeper groups the updates of one held change into one entry, and hands the entries over once
---
duration_ms: 0.515757
type: 'test'
...
# Subtest: every change made while diverged is kept, whatever it was written on
ok 25 - every change made while diverged is kept, whatever it was written on
---
duration_ms: 6.124364
type: 'test'
...
# Subtest: a change that cannot be kept in the middle loses nothing after it
ok 26 - a change that cannot be kept in the middle loses nothing after it
---
duration_ms: 3.132169
type: 'test'
...
# Subtest: a replay that cannot be made falls back to what of the change's own updates integrates
ok 27 - a replay that cannot be made falls back to what of the change's own updates integrates
---
duration_ms: 1.283101
type: 'test'
...
# Subtest: the carried changes undo in the steps they were made in
ok 28 - the carried changes undo in the steps they were made in
---
duration_ms: 5.58562
type: 'test'
...
# Subtest: a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
ok 29 - a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
---
duration_ms: 0.85181
type: 'test'
...
# Subtest: a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
ok 30 - a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
---
duration_ms: 0.684052
type: 'test'
...
# Subtest: a multi-step change replays each step where it was made: a delete, then an insert past the refused text
ok 31 - a multi-step change replays each step where it was made: a delete, then an insert past the refused text
---
duration_ms: 0.250796
type: 'test'
...
# Subtest: a mark made over an insertion in the same change covers all of it
ok 32 - a mark made over an insertion in the same change covers all of it
---
duration_ms: 0.286115
type: 'test'
...
# Subtest: a multi-step change on the refused text is replayed where it was made, on the page and the server
ok 33 - a multi-step change on the refused text is replayed where it was made, on the page and the server
---
duration_ms: 1.744324
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
ok 34 - an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
---
duration_ms: 3.891827
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
ok 35 - an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
---
duration_ms: 3.455181
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
ok 36 - an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
---
duration_ms: 2.844636
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
ok 37 - an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
---
duration_ms: 3.759885
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
ok 38 - an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
---
duration_ms: 4.287163
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
ok 39 - an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
---
duration_ms: 2.493246
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
ok 40 - an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
---
duration_ms: 4.449749
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
ok 41 - an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
---
duration_ms: 6.257052
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
ok 42 - an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
---
duration_ms: 4.790568
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
ok 43 - an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
---
duration_ms: 2.810874
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
ok 44 - an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
---
duration_ms: 2.519472
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
ok 45 - an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
---
duration_ms: 4.012668
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
ok 46 - an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
---
duration_ms: 2.668636
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
ok 47 - an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
---
duration_ms: 2.008929
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
ok 48 - an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
---
duration_ms: 2.477716
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
ok 49 - an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
---
duration_ms: 2.291975
type: 'test'
...
# Subtest: an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
ok 50 - an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
---
duration_ms: 2.908885
type: 'test'
...
# Subtest: an undo of a change saved before the refusal is still carried
ok 51 - an undo of a change saved before the refusal is still carried
---
duration_ms: 1.986812
type: 'test'
...
# Subtest: derivedStep turns one document into the other, and is null for the same one
ok 52 - derivedStep turns one document into the other, and is null for the same one
---
duration_ms: 0.206439
type: 'test'
...
# Subtest: carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
ok 53 - carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
---
duration_ms: 2191.905268
type: 'test'
...
# Subtest: carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
ok 54 - carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
---
duration_ms: 4318.501472
type: 'test'
...
# Subtest: a client id never collides with one the document already holds
ok 55 - a client id never collides with one the document already holds
---
duration_ms: 0.461986
type: 'test'
...
# Subtest: ProseMirror changes inside one window share an id; one held back there does not strand the next
ok 56 - ProseMirror changes inside one window share an id; one held back there does not strand the next
---
duration_ms: 1.941289
type: 'test'
...
1..56
# tests 56
# suites 0
# pass 56
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 6873.967578
=== fixtures: the live-update cursor and connection policy
TAP version 13
# Subtest: a tab advances its own cursor only when its POST is the very next row
ok 1 - a tab advances its own cursor only when its POST is the very next row
---
duration_ms: 1.34907
type: 'test'
...
# Subtest: the cursor never moves backwards when a response is overtaken by this tab's own write
ok 2 - the cursor never moves backwards when a response is overtaken by this tab's own write
---
duration_ms: 0.669654
type: 'test'
...
# Subtest: a later response still carries the cursor forward
ok 3 - a later response still carries the cursor forward
---
duration_ms: 0.312956
type: 'test'
...
# Subtest: a burst of notifications collapses into one fetch at a time
ok 4 - a burst of notifications collapses into one fetch at a time
---
duration_ms: 0.281921
type: 'test'
...
# Subtest: an event naming a seq the tab already has fetches nothing
ok 5 - an event naming a seq the tab already has fetches nothing
---
duration_ms: 0.384739
type: 'test'
...
# Subtest: a stopped subscriber drops a response that arrives late
ok 6 - a stopped subscriber drops a response that arrives late
---
duration_ms: 0.273651
type: 'test'
...
# Subtest: stop closes the stream, and start opens exactly one
ok 7 - stop closes the stream, and start opens exactly one
---
duration_ms: 0.302881
type: 'test'
...
# Subtest: a hidden tab closes its stream on a shortened deadline, and activity reopens it
ok 8 - a hidden tab closes its stream on a shortened deadline, and activity reopens it
---
duration_ms: 0.838131
type: 'test'
...
# Subtest: switching away and back inside the grace never drops the stream, so nothing has to be caught up
ok 9 - switching away and back inside the grace never drops the stream, so nothing has to be caught up
---
duration_ms: 0.889369
type: 'test'
...
# Subtest: a visible tab that is only being READ closes when idle and comes back on any activity
ok 10 - a visible tab that is only being READ closes when idle and comes back on any activity
---
duration_ms: 0.725258
type: 'test'
...
# Subtest: activity while streaming defers the idle close rather than reopening anything
ok 11 - activity while streaming defers the idle close rather than reopening anything
---
duration_ms: 0.295872
type: 'test'
...
# Subtest: a stream failure is never reported as a save failure, and heals on activity
ok 12 - a stream failure is never reported as a save failure, and heals on activity
---
duration_ms: 1.059076
type: 'test'
...
# Subtest: an empty response advances the cursor without applying anything
ok 13 - an empty response advances the cursor without applying anything
---
duration_ms: 0.20649
type: 'test'
...
# Subtest: a failed fetch leaves the cursor alone so the next notification retries it
ok 14 - a failed fetch leaves the cursor alone so the next notification retries it
---
duration_ms: 0.209613
type: 'test'
...
# Subtest: a decode failure retries once through the raw log, then gives up
ok 15 - a decode failure retries once through the raw log, then gives up
---
duration_ms: 0.211406
type: 'test'
...
# Subtest: updatesURL spells the query string exactly, in particular raw as the literal raw=1
ok 16 - updatesURL spells the query string exactly, in particular raw as the literal raw=1
---
duration_ms: 0.140556
type: 'test'
...
# Subtest: an update that waits holds the next one behind it
ok 17 - an update that waits holds the next one behind it
---
duration_ms: 10.145643
type: 'test'
...
# Subtest: leaving the page closes the stream at once, and coming back reopens it and catches up
ok 18 - leaving the page closes the stream at once, and coming back reopens it and catches up
---
duration_ms: 0.474788
type: 'test'
...
# Subtest: a page left before its subscriber starts never opens a stream
ok 19 - a page left before its subscriber starts never opens a stream
---
duration_ms: 0.166492
type: 'test'
...
1..19
# tests 19
# suites 0
# pass 19
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 77.272494
=== fixtures: paragraph alignment in the editor
TAP version 13
# Subtest: the class names are the ones the server renders
ok 1 - the class names are the ones the server renders
---
duration_ms: 1.762545
type: 'test'
...
# Subtest: left, absent and unknown alignments all render as no class
ok 2 - left, absent and unknown alignments all render as no class
---
duration_ms: 0.202116
type: 'test'
...
# Subtest: toDOM emits a class only for a known alignment
ok 3 - toDOM emits a class only for a known alignment
---
duration_ms: 0.825994
type: 'test'
...
# Subtest: a pasted paragraph round-trips its alignment and nothing else
ok 4 - a pasted paragraph round-trips its alignment and nothing else
---
duration_ms: 0.287911
type: 'test'
...
# Subtest: alignFromClasses is the inverse of alignClass for every alignment
ok 5 - alignFromClasses is the inverse of alignClass for every alignment
---
duration_ms: 0.259951
type: 'test'
...
# Subtest: with no dispatch the command reports and changes nothing
ok 6 - with no dispatch the command reports and changes nothing
---
duration_ms: 2.225789
type: 'test'
...
# Subtest: every toolbar alignment command sets the value its name promises
ok 7 - every toolbar alignment command sets the value its name promises
---
duration_ms: 0.368421
type: 'test'
...
# Subtest: the command aligns the block the cursor is in, and only that one
ok 8 - the command aligns the block the cursor is in, and only that one
---
duration_ms: 0.766867
type: 'test'
...
# Subtest: the command aligns every block a selection spans
ok 9 - the command aligns every block a selection spans
---
duration_ms: 0.947648
type: 'test'
...
# Subtest: choosing left clears the attribute rather than storing a value
ok 10 - choosing left clears the attribute rather than storing a value
---
duration_ms: 0.914489
type: 'test'
...
# Subtest: one transaction per click, not one per block
ok 11 - one transaction per click, not one per block
---
duration_ms: 0.785284
type: 'test'
...
# Subtest: the buttons report the alignment of the block the cursor is in
ok 12 - the buttons report the alignment of the block the cursor is in
---
duration_ms: 0.447248
type: 'test'
...
# Subtest: a block that has no alignment attribute is left alone
ok 13 - a block that has no alignment attribute is left alone
---
duration_ms: 0.502164
type: 'test'
...
1..13
# tests 13
# suites 0
# pass 13
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 152.141042
=== fixtures: the font vocabulary and its default
TAP version 13
# Subtest: the picker offers the sixteen families, Carlito and Caladea first
ok 1 - the picker offers the sixteen families, Carlito and Caladea first
---
duration_ms: 2.445477
type: 'test'
...
# Subtest: an unmarked run is Carlito
ok 2 - an unmarked run is Carlito
---
duration_ms: 0.327587
type: 'test'
...
# Subtest: code is Liberation Mono
ok 3 - code is Liberation Mono
---
duration_ms: 0.125435
type: 'test'
...
# Subtest: choosing the default clears the mark rather than setting one
ok 4 - choosing the default clears the mark rather than setting one
---
duration_ms: 0.172385
type: 'test'
...
# Subtest: choosing another family sets its mark, Liberation keeping its old keys
ok 5 - choosing another family sets its mark, Liberation keeping its old keys
---
duration_ms: 0.262273
type: 'test'
...
# Subtest: a face this build does not know is not an instruction to clear
ok 6 - a face this build does not know is not an instruction to clear
---
duration_ms: 0.118298
type: 'test'
...
# Subtest: every font mark reads back as its own family
ok 7 - every font mark reads back as its own family
---
duration_ms: 0.281643
type: 'test'
...
# Subtest: a run carrying two font marks reads as the innermost, the later in the manifest
ok 8 - a run carrying two font marks reads as the innermost, the later in the manifest
---
duration_ms: 0.176112
type: 'test'
...
# Subtest: every family has a regular, and Caveat no italic
ok 9 - every family has a regular, and Caveat no italic
---
duration_ms: 0.677537
type: 'test'
...
# Subtest: fontKeysIn picks out the families a set of marks asks for
ok 10 - fontKeysIn picks out the families a set of marks asks for
---
duration_ms: 0.640812
type: 'test'
...
# Subtest: a pasted font stack is read in order, the first family that maps winning
ok 11 - a pasted font stack is read in order, the first family that maps winning
---
duration_ms: 1.899423
type: 'test'
...
1..11
# tests 11
# suites 0
# pass 11
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 71.825879
=== fixtures: fonts load before text is painted in them
TAP version 13
# Subtest: the CSS a face is loaded by
ok 1 - the CSS a face is loaded by
---
duration_ms: 1.196964
type: 'test'
...
# Subtest: the gate waits for the faces the page needs, and commits what misses the deadline
ok 2 - the gate waits for the faces the page needs, and commits what misses the deadline
---
duration_ms: 6.973887
type: 'test'
...
# Subtest: the previews have their own wait and never hold the paper
ok 3 - the previews have their own wait and never hold the paper
---
duration_ms: 0.9584
type: 'test'
...
# Subtest: a family on screen is never committed, whatever is late
ok 4 - a family on screen is never committed, whatever is late
---
duration_ms: 2.02155
type: 'test'
...
# Subtest: a collaborator's change waits for the code face though it names no font
ok 5 - a collaborator's change waits for the code face though it names no font
---
duration_ms: 1.163228
type: 'test'
...
# Subtest: a family a change introduces waits, and is committed if it is not on screen and late
ok 6 - a family a change introduces waits, and is committed if it is not on screen and late
---
duration_ms: 0.892306
type: 'test'
...
# Subtest: the byte scan finds every family a Yjs update names
ok 7 - the byte scan finds every family a Yjs update names
---
duration_ms: 0.966329
type: 'test'
...
# Subtest: without the gate, the editor shows the held page in its system faces
ok 8 - without the gate, the editor shows the held page in its system faces
---
duration_ms: 0.27234
type: 'test'
...
# Subtest: faceURLs reads every Docs face off the stylesheet, by family, weight and style
ok 9 - faceURLs reads every Docs face off the stylesheet, by family, weight and style
---
duration_ms: 1.061232
type: 'test'
...
# Subtest: prefetch fetches each face when idle, then loads it from the cache, and never commits
ok 10 - prefetch fetches each face when idle, then loads it from the cache, and never commits
---
duration_ms: 3.363156
type: 'test'
...
# Subtest: prefetch leaves a family alone once an action is loading it, and a wait shares the load
ok 11 - prefetch leaves a family alone once an action is loading it, and a wait shares the load
---
duration_ms: 1.251879
type: 'test'
...
# Subtest: commitFallback commits a family that is not on screen, and refuses one that is
ok 12 - commitFallback commits a family that is not on screen, and refuses one that is
---
duration_ms: 0.423685
type: 'test'
...
# Subtest: the status strip says one thing at a time, and a timed note does not clear a later one
ok 13 - the status strip says one thing at a time, and a timed note does not clear a later one
---
duration_ms: 0.413601
type: 'test'
...
1..13
# tests 13
# suites 0
# pass 13
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 4081.847353
=== fixtures: what a pasted blank line means
TAP version 13
# Subtest: a Google Docs blank line stops being two lines tall
ok 1 - a Google Docs blank line stops being two lines tall
---
duration_ms: 1.715753
type: 'test'
...
# Subtest: two blank lines stay two blank lines
ok 2 - two blank lines stay two blank lines
---
duration_ms: 0.351094
type: 'test'
...
# Subtest: a trailing break-only paragraph becomes a trailing blank line
ok 3 - a trailing break-only paragraph becomes a trailing blank line
---
duration_ms: 0.188352
type: 'test'
...
# Subtest: a Shift+Enter break inside a line of text is left alone
ok 4 - a Shift+Enter break inside a line of text is left alone
---
duration_ms: 0.205747
type: 'test'
...
# Subtest: a paragraph ending in a break is left alone
ok 5 - a paragraph ending in a break is left alone
---
duration_ms: 0.943099
type: 'test'
...
# Subtest: an ordinary paste is returned by identity
ok 6 - an ordinary paste is returned by identity
---
duration_ms: 0.335202
type: 'test'
...
# Subtest: paragraph attributes are carried onto the blank lines
ok 7 - paragraph attributes are carried onto the blank lines
---
duration_ms: 0.347059
type: 'test'
...
# Subtest: a blank line inside a pasted blockquote is fixed too
ok 8 - a blank line inside a pasted blockquote is fixed too
---
duration_ms: 0.201977
type: 'test'
...
# Subtest: a break-only heading is not a paragraph and is left alone
ok 9 - a break-only heading is not a paragraph and is left alone
---
duration_ms: 0.54845
type: 'test'
...
# Subtest: WebKit's copy marker is ignored
ok 10 - WebKit's copy marker is ignored
---
duration_ms: 0.671906
type: 'test'
...
# Subtest: an ordinary br still parses as a hard_break
ok 11 - an ordinary br still parses as a hard_break
---
duration_ms: 0.3411
type: 'test'
...
# Subtest: the slice keeps its open depths
ok 12 - the slice keeps its open depths
---
duration_ms: 0.135078
type: 'test'
...
1..12
# tests 12
# suites 0
# pass 12
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 78.802106
=== fixtures: the indent vocabulary and its clamp
TAP version 13
# Subtest: a real level becomes its class
ok 1 - a real level becomes its class
---
duration_ms: 1.04045
type: 'test'
...
# Subtest: zero, null and absent are all the same answer: no indent
ok 2 - zero, null and absent are all the same answer: no indent
---
duration_ms: 0.226439
type: 'test'
...
# Subtest: a run of digits too large for any integer type still clamps
ok 3 - a run of digits too large for any integer type still clamps
---
duration_ms: 0.952849
type: 'test'
...
# Subtest: a level past the maximum clamps rather than being emitted
ok 4 - a level past the maximum clamps rather than being emitted
---
duration_ms: 0.165255
type: 'test'
...
# Subtest: anything that is not a whole number renders flush left
ok 5 - anything that is not a whole number renders flush left
---
duration_ms: 0.184854
type: 'test'
...
# Subtest: a numeric string is a number, because that is what the wire carries
ok 6 - a numeric string is a number, because that is what the wire carries
---
duration_ms: 0.167155
type: 'test'
...
# Subtest: the class round-trips back to its level for a paste
ok 7 - the class round-trips back to its level for a paste
---
duration_ms: 0.180912
type: 'test'
...
# Subtest: the step is the half inch every word processor uses
ok 8 - the step is the half inch every word processor uses
---
duration_ms: 0.114537
type: 'test'
...
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 65.485435
=== fixtures: the point ladder, and the four-step scale it replaced
TAP version 13
# Subtest: the default is offered, is first, and carries no mark
ok 1 - the default is offered, is first, and carries no mark
---
duration_ms: 1.089584
type: 'test'
...
# Subtest: every other size maps to its own mark
ok 2 - every other size maps to its own mark
---
duration_ms: 0.25474
type: 'test'
...
# Subtest: a size string works, because that is what a <select> gives you
ok 3 - a size string works, because that is what a <select> gives you
---
duration_ms: 0.174142
type: 'test'
...
# Subtest: a size this build does not offer is undefined, never null
ok 4 - a size this build does not offer is undefined, never null
---
duration_ms: 0.135
type: 'test'
...
# Subtest: no marks means the default size
ok 5 - no marks means the default size
---
duration_ms: 0.336553
type: 'test'
...
# Subtest: a mark reports its own size
ok 6 - a mark reports its own size
---
duration_ms: 0.156303
type: 'test'
...
# Subtest: the four-step scale still reports a size on the ladder
ok 7 - the four-step scale still reports a size on the ladder
---
duration_ms: 0.265508
type: 'test'
...
# Subtest: the legacy marks are in the group the toolbar clears
ok 8 - the legacy marks are in the group the toolbar clears
---
duration_ms: 0.13851
type: 'test'
...
# Subtest: the ladder wins over a legacy mark on the same run
ok 9 - the ladder wins over a legacy mark on the same run
---
duration_ms: 0.584676
type: 'test'
...
1..9
# tests 9
# suites 0
# pass 9
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 65.713461
=== fixtures: the autoformat rules, and the Backspace that undoes one
TAP version 13
# Subtest: "- " starts a bulleted list
ok 1 - "- " starts a bulleted list
---
duration_ms: 4.326765
type: 'test'
...
# Subtest: "* " and "+ " start one too
ok 2 - "* " and "+ " start one too
---
duration_ms: 1.101249
type: 'test'
...
# Subtest: "1. " starts a numbered list
ok 3 - "1. " starts a numbered list
---
duration_ms: 0.599534
type: 'test'
...
# Subtest: "> " starts a quote
ok 4 - "> " starts a quote
---
duration_ms: 0.961888
type: 'test'
...
# Subtest: "\# " makes a heading, and "\#\#\# " makes a level-3 one
ok 5 - "\# " makes a heading, and "\#\#\# " makes a level-3 one
---
duration_ms: 1.03331
type: 'test'
...
# Subtest: Backspace right after a rule gives back the typed characters
ok 6 - Backspace right after a rule gives back the typed characters
---
duration_ms: 1.062316
type: 'test'
...
# Subtest: Backspace away from a rule declines, leaving Backspace alone
ok 7 - Backspace away from a rule declines, leaving Backspace alone
---
duration_ms: 0.467402
type: 'test'
...
# Subtest: the patterns do not fire where they must not
ok 8 - the patterns do not fire where they must not
---
duration_ms: 0.135215
type: 'test'
...
# Subtest: a numbered list always starts at 1 while the renderer ignores order
ok 9 - a numbered list always starts at 1 while the renderer ignores order
---
duration_ms: 0.881887
type: 'test'
...
1..9
# tests 9
# suites 0
# pass 9
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 90.518203
=== fixtures: counting words, including where there are no spaces
TAP version 13
# Subtest: nothing is nothing
ok 1 - nothing is nothing
---
duration_ms: 1.089454
type: 'test'
...
# Subtest: ordinary English
ok 2 - ordinary English
---
duration_ms: 0.312926
type: 'test'
...
# Subtest: punctuation is not a word
ok 3 - punctuation is not a word
---
duration_ms: 0.158822
type: 'test'
...
# Subtest: a language without spaces between words still counts
ok 4 - a language without spaces between words still counts
---
duration_ms: 15.086193
type: 'test'
...
# Subtest: the document count walks every block
ok 5 - the document count walks every block
---
duration_ms: 1.621334
type: 'test'
...
# Subtest: a paragraph boundary is a word boundary
ok 6 - a paragraph boundary is a word boundary
---
duration_ms: 0.39945
type: 'test'
...
# Subtest: characters are counted with and without spaces
ok 7 - characters are counted with and without spaces
---
duration_ms: 0.362016
type: 'test'
...
# Subtest: no selection means no selection count, not a zero
ok 8 - no selection means no selection count, not a zero
---
duration_ms: 0.327863
type: 'test'
...
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 117.240789
=== fixtures: which menu items the editor enables
TAP version 13
# Subtest: an extraCommands item is enabled by sync
ok 1 - an extraCommands item is enabled by sync
---
duration_ms: 1.934037
type: 'test'
...
# Subtest: print, the module’s own local command, is enabled too
ok 2 - print, the module’s own local command, is enabled too
---
duration_ms: 0.32603
type: 'test'
...
# Subtest: an editor command follows what the command reports
ok 3 - an editor command follows what the command reports
---
duration_ms: 0.239709
type: 'test'
...
# Subtest: a checkable item is pressed and enabled while it is the current one
ok 4 - a checkable item is pressed and enabled while it is the current one
---
duration_ms: 0.399726
type: 'test'
...
# Subtest: the view pair follows the mode after a switch, with no reload
ok 5 - the view pair follows the mode after a switch, with no reload
---
duration_ms: 0.245037
type: 'test'
...
# Subtest: an item with no aria-pressed never gains one
ok 6 - an item with no aria-pressed never gains one
---
duration_ms: 0.380891
type: 'test'
...
# Subtest: with no view, editor commands are disabled and local ones are not
ok 7 - with no view, editor commands are disabled and local ones are not
---
duration_ms: 0.168824
type: 'test'
...
1..7
# tests 7
# suites 0
# pass 7
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 64.24453
=== fixtures: the editor's chrome writes only what changed
TAP version 13
# Subtest: a state update that changes nothing writes nothing to the chrome
ok 1 - a state update that changes nothing writes nothing to the chrome
---
duration_ms: 7.120187
type: 'test'
...
# Subtest: a state update that changes something still writes it
ok 2 - a state update that changes something still writes it
---
duration_ms: 2.407529
type: 'test'
...
# Subtest: no DOM write in either bar bypasses dom-writes.mjs
ok 3 - no DOM write in either bar bypasses dom-writes.mjs
---
duration_ms: 5.15536
type: 'test'
...
# Subtest: both undo/redo pairs are synced and neither is in the roving tab stop
ok 4 - both undo/redo pairs are synced and neither is in the roving tab stop
---
duration_ms: 1.211993
type: 'test'
...
# Subtest: the arrow keys walk the bar in reading order: the pickers, then the buttons
ok 5 - the arrow keys walk the bar in reading order: the pickers, then the buttons
---
duration_ms: 0.963304
type: 'test'
...
1..5
# tests 5
# suites 0
# pass 5
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 160.941865
=== fixtures: the formatting bar's tab stop reaches only drawn controls
TAP version 13
# Subtest: the tab stop skips a control that is not drawn
ok 1 - the tab stop skips a control that is not drawn
---
duration_ms: 1.094811
type: 'test'
...
# Subtest: with nothing drawn, focusStop reports false and focuses nothing
ok 2 - with nothing drawn, focusStop reports false and focuses nothing
---
duration_ms: 0.237306
type: 'test'
...
# Subtest: a stop whose control stops being drawn moves to one that is
ok 3 - a stop whose control stops being drawn moves to one that is
---
duration_ms: 0.289032
type: 'test'
...
# Subtest: the arrow keys walk only the drawn controls
ok 4 - the arrow keys walk only the drawn controls
---
duration_ms: 0.232443
type: 'test'
...
1..4
# tests 4
# suites 0
# pass 4
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 60.483408
=== the editor bundle must match a fresh build
wrote internal/docs/static/editor.764c2a5845d72784.js (359900 bytes)
wrote internal/docs/static/jumpto.58ca95c441b1bd49.js (3234 bytes)
wrote internal/docs/static/share.b7f152cdd9e793ac.js (603 bytes)
wrote internal/docs/static/fontsgate.7161919aa93533b1.js (14291 bytes)
wrote internal/docs/static/fontshold.1a1f5ca5b87eb00d.js (440 bytes)
=== rust: fmt
=== the embedded wasm must be built from these sources
wasm-stamp: internal/core/testdata/docs_core.wasm was built from these inputs
=== wasm: clippy, then the artifact the host embeds
Updating crates.io index
Downloading crates ...
Downloaded async-trait v0.1.92
Downloaded ahash v0.8.12
Downloaded arrayvec v0.7.8
Downloaded async-lock v3.4.2
Downloaded arc-swap v1.9.2
Downloaded cfg-if v1.0.4
Downloaded once_cell v1.21.4
Downloaded equivalent v1.0.2
Downloaded foldhash v0.2.0
Downloaded multi-stash v0.2.0
Downloaded dashmap v6.2.1
Downloaded rustversion v1.0.23
Downloaded crossbeam-utils v0.8.22
Downloaded event-listener v5.4.2
Downloaded itoa v1.0.18
Downloaded indexmap-nostd v0.4.0
Downloaded parking v2.2.1
Downloaded smallstr v0.3.1
Downloaded event-listener-strategy v0.5.4
Downloaded downcast-rs v1.2.1
Downloaded num-derive v0.4.2
Downloaded scopeguard v1.2.0
Downloaded version_check v0.9.5
Downloaded thiserror-impl v2.0.20
Downloaded autocfg v1.5.1
Downloaded wasmi_collections v0.32.3
Downloaded zmij v1.0.23
Downloaded quote v1.0.47
Downloaded wasmi_core v0.32.3
Downloaded thiserror v2.0.20
Downloaded paste v1.0.15
Downloaded string-interner v0.17.0
Downloaded smallvec v1.15.2
Downloaded lock_api v0.4.14
Downloaded pin-project-lite v0.2.17
Downloaded spin v0.9.9
Downloaded parking_lot_core v0.9.12
Downloaded semver v1.0.28
Downloaded proc-macro2 v1.0.107
Downloaded serde_core v1.0.229
Downloaded unicode-ident v1.0.24
Downloaded num-traits v0.2.19
Downloaded bitflags v2.13.1
Downloaded serde_derive v1.0.229
Downloaded serde v1.0.229
Downloaded memchr v2.8.3
Downloaded indexmap v2.14.1
Downloaded wasmparser-nostd v0.100.2
Downloaded hashbrown v0.14.5
Downloaded hashbrown v0.17.1
Downloaded serde_json v1.0.151
Downloaded libm v0.2.16
Downloaded wasmparser v0.258.0
Downloaded syn v2.0.119
Downloaded zerocopy v0.8.56
Downloaded wasmi v0.32.3
Downloaded syn v3.0.4
Downloaded libc v0.2.189
Compiling proc-macro2 v1.0.107
Compiling unicode-ident v1.0.24
Compiling quote v1.0.47
Compiling serde_core v1.0.229
Compiling version_check v0.9.5
Compiling zerocopy v0.8.56
Checking cfg-if v1.0.4
Checking once_cell v1.21.4
Compiling serde v1.0.229
Compiling libc v0.2.189
Checking smallvec v1.15.2
Checking pin-project-lite v0.2.17
Compiling crossbeam-utils v0.8.22
Checking parking v2.2.1
Compiling parking_lot_core v0.9.12
Compiling zmij v1.0.23
Compiling rustversion v1.0.23
Compiling serde_json v1.0.151
Checking event-listener v5.4.2
Compiling thiserror v2.0.20
Checking scopeguard v1.2.0
Checking itoa v1.0.18
Checking lock_api v0.4.14
Checking event-listener-strategy v0.5.4
Checking memchr v2.8.3
Compiling ahash v0.8.12
Checking async-lock v3.4.2
Checking smallstr v0.3.1
Checking fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core/vendor/fastrand-2.5.0)
Compiling autocfg v1.5.1
Compiling paste v1.0.15
Compiling libm v0.2.16
Checking foldhash v0.2.0
Checking downcast-rs v1.2.1
Checking indexmap-nostd v0.4.0
Checking equivalent v1.0.2
Checking arrayvec v0.7.8
Checking bitflags v2.13.1
Checking multi-stash v0.2.0
Checking spin v0.9.9
Checking semver v1.0.28
Checking wasmparser-nostd v0.100.2
Compiling num-traits v0.2.19
Checking arc-swap v1.9.2
Compiling syn v3.0.4
Compiling syn v2.0.119
Checking wasmi_core v0.32.3
Checking hashbrown v0.17.1
Checking indexmap v2.14.1
Compiling num-derive v0.4.2
Compiling serde_derive v1.0.229
Compiling thiserror-impl v2.0.20
Compiling async-trait v0.1.92
Checking hashbrown v0.14.5
Checking dashmap v6.2.1
Checking yrs v0.23.5 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5)
Checking string-interner v0.17.0
Checking wasmparser v0.258.0
Checking wasmi_collections v0.32.3
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
Checking wasmi v0.32.3
warning: value assigned to `left` is never read
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:436:33
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:454:34
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
warning: `yrs` (lib) generated 66 warnings (run `cargo clippy --fix --lib -p yrs -- -D warnings -D clippy::disallowed_methods` to apply 35 suggestions)
Checking docs-core v0.1.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.61s
build-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
Downloading crates ...
Downloaded getrandom v0.4.3
Compiling proc-macro2 v1.0.107
Compiling quote v1.0.47
Compiling unicode-ident v1.0.24
Compiling serde_core v1.0.229
Compiling cfg-if v1.0.4
Compiling zmij v1.0.23
Compiling rustversion v1.0.23
Compiling pin-project-lite v0.2.17
Compiling crossbeam-utils v0.8.22
Compiling smallvec v1.15.2
Compiling parking_lot_core v0.9.12
Compiling getrandom v0.4.3
Compiling serde v1.0.229
Compiling thiserror v2.0.20
Compiling scopeguard v1.2.0
Compiling serde_json v1.0.151
Compiling itoa v1.0.18
Compiling once_cell v1.21.4
Compiling hashbrown v0.14.5
Compiling event-listener v5.4.2
Compiling lock_api v0.4.14
Compiling memchr v2.8.3
Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core/vendor/fastrand-2.5.0)
Compiling smallstr v0.3.1
Compiling event-listener-strategy v0.5.4
Compiling async-lock v3.4.2
Compiling arc-swap v1.9.2
Compiling dashmap v6.2.1
Compiling syn v3.0.4
Compiling thiserror-impl v2.0.20
Compiling serde_derive v1.0.229
Compiling async-trait v0.1.92
Compiling yrs v0.23.5 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5)
warning: unused import: `ArrayRef`
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:441:33
|
441 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
441 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:459:34
|
459 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
459 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /docs-core/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
Compiling docs-core v0.1.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core)
Finished `release` profile [optimized] target(s) in 9.35s
core/target/wasm32-unknown-unknown/release/docs_core.wasm (481670 bytes)
=== rust: build, test
Compiling libc v0.2.189
Compiling smallvec v1.15.2
Compiling serde_core v1.0.229
Compiling parking v2.2.1
Compiling pin-project-lite v0.2.17
Compiling cfg-if v1.0.4
Compiling scopeguard v1.2.0
Compiling parking_lot_core v0.9.12
Compiling zmij v1.0.23
Compiling crossbeam-utils v0.8.22
Compiling serde v1.0.229
Compiling serde_json v1.0.151
Compiling thiserror v2.0.20
Compiling itoa v1.0.18
Compiling once_cell v1.21.4
Compiling hashbrown v0.14.5
Compiling memchr v2.8.3
Compiling arc-swap v1.9.2
Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core/vendor/fastrand-2.5.0)
Compiling lock_api v0.4.14
Compiling event-listener v5.4.2
Compiling smallstr v0.3.1
Compiling event-listener-strategy v0.5.4
Compiling async-lock v3.4.2
Compiling dashmap v6.2.1
Compiling yrs v0.23.5 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5)
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:436:33
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:454:34
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
Compiling docs-core v0.1.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core)
Finished `release` profile [optimized] target(s) in 15.88s
Compiling cfg-if v1.0.4
Compiling once_cell v1.21.4
Compiling smallvec v1.15.2
Compiling pin-project-lite v0.2.17
Compiling parking v2.2.1
Compiling serde_core v1.0.229
Compiling zerocopy v0.8.56
Compiling libc v0.2.189
Compiling scopeguard v1.2.0
Compiling crossbeam-utils v0.8.22
Compiling zmij v1.0.23
Compiling itoa v1.0.18
Compiling memchr v2.8.3
Compiling thiserror v2.0.20
Compiling arc-swap v1.9.2
Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core/vendor/fastrand-2.5.0)
Compiling foldhash v0.2.0
Compiling lock_api v0.4.14
Compiling num-traits v0.2.19
Compiling libm v0.2.16
Compiling event-listener v5.4.2
Compiling smallstr v0.3.1
Compiling indexmap-nostd v0.4.0
Compiling equivalent v1.0.2
Compiling downcast-rs v1.2.1
Compiling semver v1.0.28
Compiling multi-stash v0.2.0
Compiling spin v0.9.9
Compiling arrayvec v0.7.8
Compiling bitflags v2.13.1
Compiling event-listener-strategy v0.5.4
Compiling wasmparser-nostd v0.100.2
Compiling async-lock v3.4.2
Compiling parking_lot_core v0.9.12
Compiling wasmi_core v0.32.3
Compiling serde v1.0.229
Compiling serde_json v1.0.151
Compiling hashbrown v0.17.1
Compiling indexmap v2.14.1
Compiling wasmparser v0.258.0
Compiling ahash v0.8.12
Compiling hashbrown v0.14.5
Compiling dashmap v6.2.1
Compiling string-interner v0.17.0
Compiling wasmi_collections v0.32.3
Compiling yrs v0.23.5 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5)
Compiling wasmi v0.32.3
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:436:33
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:454:34
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
Compiling docs-core v0.1.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core)
Finished `test` profile [unoptimized + debuginfo] target(s) in 14.97s
Running unittests src/lib.rs (core/target/debug/deps/docs_core-8c4018410399db85)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/bin/emit_edit.rs (core/target/debug/deps/emit_edit-59b4862ab9f9d5ed)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/bin/emit_initial.rs (core/target/debug/deps/emit_initial-e76665695f01a1e0)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/bin/emit_update.rs (core/target/debug/deps/emit_update-3bb3efea053d1e90)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/build.rs (core/target/debug/deps/build-8b9450ec4bf667c7)
running 11 tests
test a_heading_level_is_a_number ... ok
test refuses_a_client_id_a_browser_cannot_read ... ok
test an_unmarked_run_after_a_marked_one_inherits_nothing ... ok
test one_text_per_block_and_none_when_empty ... ok
test refuses_past_its_limits ... ok
test builds_paragraphs_headings_and_marks ... ok
test the_abi_reports_each_refusal_as_its_own_code ... ok
test writes_only_into_an_empty_document ... ok
test refuses_malformed_lists_and_writes_nothing ... ok
test the_snapshot_replays_to_the_same_structure ... ok
test adjacent_runs_with_the_same_marks_merge ... ok
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/edit.rs (core/target/debug/deps/edit-a641a17cb6506501)
running 5 tests
test missing_dependency_refuses_without_losing_pending_update ... ok
test unsupported_blocks_are_preserved_and_never_deleted ... ok
test splices_are_normal_updates_and_preserve_untouched_items ... ok
test invalid_later_edit_never_mutates_valid_prefix ... ok
test client_and_input_bounds_are_enforced ... ok
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/fragment.rs (core/target/debug/deps/fragment-808f3df51aadbc5c)
running 31 tests
test empty_document_is_empty_output ... ok
test empty_block_is_preserved_like_html ... ok
test an_unknown_alignment_is_dropped_from_every_renderer ... ok
test a_hard_break_does_not_split_the_block_it_is_in ... ok
test escapes_html_in_text ... ok
test escapes_json_in_text ... ok
test json_clamps_heading_level_like_html ... ok
test json_of_an_empty_document_is_an_empty_doc_node ... ok
test json_keeps_unknown_nodes_and_their_children ... ok
test a_document_with_no_alignment_renders_exactly_as_it_did_before ... ok
test json_names_every_font_mark ... ok
test json_reports_paragraph_alignment ... ok
test json_marks_are_in_a_fixed_order ... ok
test nested_blocks_do_not_duplicate_their_text ... ok
test reads_paragraphs_as_blocks ... ok
test renders_a_code_block_as_the_editor_does ... ok
test renders_a_hard_break_in_every_renderer ... ok
test json_is_deterministic ... ok
test renders_every_font_mark_as_a_classed_span ... ok
test renders_paragraphs_as_html ... ok
test renders_headings_and_lists ... ok
test renders_marks ... ok
test text_sibling_before_a_block_is_separated ... ok
test unknown_nodes_keep_their_text ... ok
test renders_paragraph_alignment_as_a_class ... ok
test renders_the_document_as_prosemirror_json ... ok
test renders_font_and_size_marks_as_classed_spans ... ok
test renders_block_indent_as_a_class ... ok
test renders_the_point_ladder_and_the_scale_it_replaced ... ok
test reports_block_indent_to_the_exporters ... ok
test renders_every_family_in_the_manifest ... ok
test result: ok. 31 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/initial.rs (core/target/debug/deps/initial-acc2bfd90d9cab80)
running 3 tests
test initial_rejects_client_ids_outside_yjs_range ... ok
test initial_rejection_never_leaves_partial_content ... ok
test initial_content_is_real_structured_literal_text ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/native_rule_convergence.rs (core/target/debug/deps/native_rule_convergence-4dec79958a19e436)
running 1 test
test native_rule_updates_converge_through_server_rendering_and_snapshot_reload ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/no_host_imports.rs (core/target/debug/deps/no_host_imports-5119a853f9f9899b)
running 1 test
test no_host_imports ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/snapshot.rs (core/target/debug/deps/snapshot-373ee42aff85bca8)
running 5 tests
test garbage_does_not_verify ... ok
test a_snapshot_replayed_into_an_empty_doc_reproduces_the_document ... ok
test a_snapshot_of_this_document_verifies ... ok
test a_snapshot_with_a_parked_update_heals_once_its_dependency_arrives ... ok
test a_snapshot_of_a_different_document_does_not_verify ... ok
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/wasm_trap_containment.rs (core/target/debug/deps/wasm_trap_containment-86045a0b7321757f)
running 2 tests
build-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
build-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on shared package cache
Blocking waiting for file lock on build directory
warning: unused import: `ArrayRef`
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:441:33
|
441 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
441 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:459:34
|
459 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
459 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /docs-core/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
Finished `release` profile [optimized] target(s) in 0.06s
warning: unused import: `ArrayRef`
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /docs-core/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /docs-core/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
core/target/wasm32-unknown-unknown/release/docs_core.wasm (481670 bytes)
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:441:33
|
441 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
441 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:459:34
|
459 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
459 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /docs-core/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /docs-core/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
Finished `release` profile [optimized] target(s) in 0.07s
core/target/wasm32-unknown-unknown/release/docs_core.wasm (481670 bytes)
test borrow_leak_repro_trapping_unicode_mutation ... ok
test trap_on_one_document_does_not_corrupt_others_or_wedge_the_instance ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 38.91s
Running tests/wire_compat.rs (core/target/debug/deps/wire_compat-c14f76bdcc7b73c7)
running 6 tests
test abi_rejects_garbage_without_panicking ... ok
test applies_concurrent ... ok
test applies_hello ... ok
test applies_formatted ... ok
test abi_round_trips_a_fixture ... ok
test applies_unicode ... ok
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests docs_core
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
=== the embedded wasm must match a fresh build
gate: byte comparison skipped on Linux/aarch64: no build on this host reproduces the canonical amd64 bytes; the input stamp above holds freshness here
=== wire compatibility, both directions
--- regenerating fixtures from JS yjs
hello: 27 bytes
unicode: 33 bytes
formatted: 70 bytes
concurrent: 36 bytes
--- fixtures must be unchanged (they are the contract, not an output)
--- Rust reads what JS wrote
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:436:33
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:454:34
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
Running tests/wire_compat.rs (target/debug/deps/wire_compat-c14f76bdcc7b73c7)
running 6 tests
test abi_rejects_garbage_without_panicking ... ok
test applies_concurrent ... ok
test applies_unicode ... ok
test applies_hello ... ok
test applies_formatted ... ok
test abi_round_trips_a_fixture ... ok
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
--- JS reads what Rust wrote
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:436:33
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:454:34
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
verify-rust: ok (81 bytes)
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:436:33
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:454:34
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
initial content: real Yjs/ProseMirror parity passed
semantic edits: production schema, rich-content identity and offline convergence passed
wire-gate: ok
=== go: vet, test, gofmt
ok github.com/carlosframework/docs/cmd/docs 3.682s
? github.com/carlosframework/docs/cmd/docs-colophon [no test files]
? github.com/carlosframework/docs/cmd/docs-contract [no test files]
ok github.com/carlosframework/docs/internal/contract 0.281s
ok github.com/carlosframework/docs/internal/core 15.114s
ok github.com/carlosframework/docs/internal/docs 177.390s
? github.com/carlosframework/docs/internal/docs/keymailtest [no test files]
? github.com/carlosframework/docs/internal/docs/linkstore [no test files]
ok github.com/carlosframework/docs/internal/docs/principalstore 0.228s
ok github.com/carlosframework/docs/internal/docx 0.247s
ok github.com/carlosframework/docs/internal/export 0.288s
ok github.com/carlosframework/docs/internal/fonts 0.188s
ok github.com/carlosframework/docs/internal/lint 0.100s
? github.com/carlosframework/docs/internal/pdf [no test files]
ok github.com/carlosframework/docs/internal/shipped 6.322s
=== go: build ./... (the app, not just the packages tests import)
gate: ok
=== native ===
sync-fonts: 62 faces match internal/fonts (20.9 MB).
Compiling proc-macro2 v1.0.107
Compiling unicode-ident v1.0.24
Compiling quote v1.0.47
Compiling serde_core v1.0.229
Compiling cfg-if v1.0.4
Compiling getrandom v0.4.3
Compiling crossbeam-utils v0.8.22
Compiling rustversion v1.0.23
Compiling zmij v1.0.23
Compiling pin-project-lite v0.2.17
Compiling parking_lot_core v0.9.12
Compiling smallvec v1.15.2
Compiling serde_json v1.0.151
Compiling scopeguard v1.2.0
Compiling thiserror v2.0.20
Compiling serde v1.0.229
Compiling memchr v2.8.3
Compiling event-listener v5.4.2
Compiling lock_api v0.4.14
Compiling itoa v1.0.18
Compiling once_cell v1.21.4
Compiling hashbrown v0.14.5
Compiling smallstr v0.3.1
Compiling event-listener-strategy v0.5.4
Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core/vendor/fastrand-2.5.0)
Compiling async-lock v3.4.2
Compiling arc-swap v1.9.2
Compiling dashmap v6.2.1
Compiling syn v3.0.5
Compiling serde_derive v1.0.229
Compiling thiserror-impl v2.0.20
Compiling async-trait v0.1.92
Compiling yrs v0.23.5 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5)
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:441:33
|
441 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
441 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:459:34
|
459 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
459 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
Compiling docs-native-crdt v0.1.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/crdt)
warning: unused import: `XmlFragment`
--> src/projection.rs:3:68
|
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: function `branch` is never used
--> src/projection.rs:15:8
|
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
| ^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: `docs-native-crdt` (lib) generated 2 warnings
Finished `release` profile [optimized] target(s) in 12.43s
Compiling proc-macro2 v1.0.107
Compiling quote v1.0.47
Compiling unicode-ident v1.0.24
Compiling libc v0.2.189
Compiling serde_core v1.0.229
Compiling zmij v1.0.23
Compiling pin-project-lite v0.2.17
Compiling parking v2.2.1
Compiling smallvec v1.15.2
Compiling parking_lot_core v0.9.12
Compiling crossbeam-utils v0.8.22
Compiling rustversion v1.0.23
Compiling cfg-if v1.0.4
Compiling serde_json v1.0.151
Compiling scopeguard v1.2.0
Compiling thiserror v2.0.20
Compiling serde v1.0.229
Compiling itoa v1.0.18
Compiling event-listener v5.4.2
Compiling lock_api v0.4.14
Compiling hashbrown v0.14.5
Compiling once_cell v1.21.4
Compiling memchr v2.8.3
Compiling smallstr v0.3.1
Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/core/vendor/fastrand-2.5.0)
Compiling event-listener-strategy v0.5.4
Compiling async-lock v3.4.2
Compiling arc-swap v1.9.2
Compiling syn v3.0.5
Compiling dashmap v6.2.1
Compiling serde_derive v1.0.229
Compiling thiserror-impl v2.0.20
Compiling async-trait v0.1.92
Compiling yrs v0.23.5 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5)
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:17:39
|
17 | use crate::types::array::{ArrayEvent, ArrayRef};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `XmlElementRef` and `XmlTextRef`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:22:25
|
22 | use crate::types::xml::{XmlElementRef, XmlEvent, XmlTextEvent, XmlTextRef};
| ^^^^^^^^^^^^^ ^^^^^^^^^^
warning: value assigned to `left` is never read
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:288:24
|
288 | let mut left = None;
| ^^^^ this value is reassigned later and never used
...
334 | left = parent_branch.map.get(sub).cloned();
| ------------------------------------------ `left` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:672:29
|
672 | if let Some(mut left) = this.left {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ptr`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:758:25
|
758 | let ptr = BranchPtr::from(branch);
| ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `branch`
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:447:35
|
447 | ItemContent::Type(branch) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch`
warning: method `clock_end` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block.rs:136:12
|
126 | impl BlockCell {
| -------------- method in this implementation
...
136 | pub fn clock_end(&self) -> u32 {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `get_block_mut` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:79:8
|
23 | impl ClientBlockList {
| -------------------- method in this implementation
...
79 | fn get_block_mut(&mut self, clock: u32) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: methods `contains` and `get_block_mut` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:306:12
|
299 | impl BlockStore {
| --------------- methods in this implementation
...
306 | pub fn contains(&self, id: &ID) -> bool {
| ^^^^^^^^
...
381 | pub(crate) fn get_block_mut(&mut self, id: &ID) -> Option<&mut BlockCell> {
| ^^^^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:486:19
|
486 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_store.rs:492:8
|
491 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
492 | fn new(update: &'a BlockStore) -> Self {
| ^^^
warning: constant `WEAK_REF_FLAGS_QUOTE` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:216:7
|
216 | const WEAK_REF_FLAGS_QUOTE: u8 = 0b0000_0001;
| ^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:218:7
|
218 | const WEAK_REF_FLAGS_START_ASSOC: u8 = 0b0000_0010;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_ASSOC` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:220:7
|
220 | const WEAK_REF_FLAGS_END_ASSOC: u8 = 0b0000_0100;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_START_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:222:7
|
222 | const WEAK_REF_FLAGS_START_UNBOUNDED: u8 = 0b0000_1000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_END_UNBOUNDED` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:224:7
|
224 | const WEAK_REF_FLAGS_END_UNBOUNDED: u8 = 0b0001_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `WEAK_REF_FLAGS_PARENT_ROOT` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:226:7
|
226 | const WEAK_REF_FLAGS_PARENT_ROOT: u8 = 0b0010_0000;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method `blocks` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:45:19
|
29 | impl UpdateBlocks {
| ----------------- method in this implementation
...
45 | pub(crate) fn blocks(&self) -> Blocks<'_> {
| ^^^^^^
warning: methods `last_id` and `into_block` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:934:19
|
879 | impl BlockCarrier {
| ----------------- methods in this implementation
...
934 | pub(crate) fn last_id(&self) -> ID {
| ^^^^^^^
...
963 | pub fn into_block(self) -> Option<Box<Item>> {
| ^^^^^^^^^^
warning: struct `Blocks` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1076:19
|
1076 | pub(crate) struct Blocks<'a> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/update.rs:1082:8
|
1081 | impl<'a> Blocks<'a> {
| ------------------- associated function in this implementation
1082 | fn new(update: &'a UpdateBlocks) -> Self {
| ^^^
warning: methods `move_to`, `forward`, `backward`, and `values` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:73:12
|
23 | impl BlockIter {
| -------------- methods in this implementation
...
73 | pub fn move_to(&mut self, index: u32, txn: &mut TransactionMut) {
| ^^^^^^^
...
99 | pub fn forward<T: ReadTxn>(&mut self, txn: &T, len: u32) {
| ^^^^^^^
...
186 | pub fn backward<T: ReadTxn>(&mut self, txn: &mut T, mut len: u32) {
| ^^^^^^^^
...
520 | pub fn values<'a, 'txn, T: ReadTxn>(
| ^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:528:12
|
528 | pub struct Values<'a, 'txn> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/block_iter.rs:534:8
|
533 | impl<'a, 'txn> Values<'a, 'txn> {
| ------------------------------- associated function in this implementation
534 | fn new(iter: &'a mut BlockIter, txn: &'txn mut TransactionMut<'txn>) -> Self {
| ^^^
warning: method `remove_at` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/branch.rs:427:19
|
245 | impl Branch {
| ----------- method in this implementation
...
427 | pub(crate) fn remove_at(&self, txn: &mut TransactionMut, index: u32, len: u32) -> u32 {
| ^^^^^^^^^
warning: trait `BlockIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:7:18
|
7 | pub(crate) trait BlockIterator: TxnIterator<Item = ItemPtr> + Sized {
| ^^^^^^^^^^^^^
warning: trait `BlockSliceIterator` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:21:18
|
21 | pub(crate) trait BlockSliceIterator: TxnIterator<Item = ItemSlice> + Sized {
| ^^^^^^^^^^^^^^^^^^
warning: struct `BlockSlices` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:283:19
|
283 | pub(crate) struct BlockSlices<I>(I)
| ^^^^^^^^^^^
warning: struct `RangeIter` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:311:19
|
311 | pub(crate) struct RangeIter<I> {
| ^^^^^^^^^
warning: associated items `new` and `begin` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:322:8
|
318 | / impl<I> RangeIter<I>
319 | | where
320 | | I: TxnIterator<Item = ItemPtr>,
| |___________________________________- associated items in this implementation
321 | {
322 | fn new(iter: I, start: StickyIndex, end: StickyIndex) -> Self {
| ^^^
...
331 | fn begin<T: ReadTxn>(&mut self, txn: &T, start_offset: &mut u32) -> Option<ItemPtr> {
| ^^^^^
warning: enum `RangeIterState` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:439:6
|
439 | enum RangeIterState {
| ^^^^^^^^^^^^^^
warning: struct `Values` is never constructed
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:450:19
|
450 | pub(crate) struct Values<I> {
| ^^^^^^
warning: associated function `new` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/iter.rs:456:8
|
455 | impl<I> Values<I> {
| ----------------- associated function in this implementation
456 | fn new(iter: I) -> Self {
| ^^^
warning: method `get_item` is never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/moving.rs:640:19
|
410 | impl StickyIndex {
| ---------------- method in this implementation
...
640 | pub(crate) fn get_item<T: ReadTxn>(&self, txn: &T) -> Option<ItemPtr> {
| ^^^^^^^^
warning: methods `contains_id`, `right`, and `left` are never used
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/slice.rs:174:12
|
100 | impl ItemSlice {
| -------------- methods in this implementation
...
174 | pub fn contains_id(&self, id: &ID) -> bool {
| ^^^^^^^^^^^
...
244 | pub fn right(&self) -> Option<ItemSlice> {
| ^^^^^
...
264 | pub fn left(&self) -> Option<ItemSlice> {
| ^^^^
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:63:18
|
63 | pub fn added(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
63 | pub fn added(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:69:20
|
69 | pub fn removed(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
69 | pub fn removed(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/event.rs:75:19
|
75 | pub fn loaded(&self) -> SubdocsEventIter {
| ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
75 | pub fn loaded(&self) -> SubdocsEventIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/id_set.rs:595:34
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
595 | pub(crate) fn deleted_blocks(&self) -> DeletedBlocks<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:345:20
|
345 | pub fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
345 | pub fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:351:25
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
351 | pub fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:431:28
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
431 | pub(crate) fn try_read(&self) -> Option<RwLockReadGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:436:33
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
436 | pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:445:30
|
445 | pub(crate) fn read_async(&self) -> Read<Store> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
445 | pub(crate) fn read_async(&self) -> Read<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:449:29
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<Store>> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
449 | pub(crate) fn try_write(&self) -> Option<RwLockWriteGuard<'_, Store>> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:454:34
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
454 | pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/store.rs:463:31
|
463 | pub(crate) fn write_async(&self) -> Write<Store> {
| ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
463 | pub(crate) fn write_async(&self) -> Write<'_, Store> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:166:18
|
166 | fn root_refs(&self) -> RootRefs {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
166 | fn root_refs(&self) -> RootRefs<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:173:21
|
173 | fn subdoc_guids(&self) -> SubdocGuids {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
173 | fn subdoc_guids(&self) -> SubdocGuids<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transaction.rs:179:16
|
179 | fn subdocs(&self) -> SubdocsIter {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
179 | fn subdocs(&self) -> SubdocsIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/types/mod.rs:1108:17
|
1108 | pub fn iter(&self) -> EventsIter {
| ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1108 | pub fn iter(&self) -> EventsIter<'_> {
| ++++
warning: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/observer.rs:280:33
|
280 | pub type Subscription = Arc<dyn Drop + 'static>;
| ^^^^
|
= note: `#[warn(dyn_drop)]` on by default
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/state_vector.rs:93:17
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<ClientID, u32> {
| ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
93 | pub fn iter(&self) -> std::collections::hash_map::Iter<'_, ClientID, u32> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/sync/awareness.rs:178:17
|
178 | pub fn iter(&self) -> AwarenessIter {
| ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn iter(&self) -> AwarenessIter<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:18:21
|
18 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
18 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:29:25
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError>;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
29 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:43:33
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
43 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:60:29
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
60 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:71:17
|
71 | fn transact(&self) -> Transaction;
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
71 | fn transact(&self) -> Transaction<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:83:21
|
83 | fn transact_mut(&self) -> TransactionMut;
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
83 | fn transact_mut(&self) -> TransactionMut<'_>;
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:87:21
|
87 | fn try_transact(&self) -> Result<Transaction, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
87 | fn try_transact(&self) -> Result<Transaction<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:94:25
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut, TransactionAcqError> {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
94 | fn try_transact_mut(&self) -> Result<TransactionMut<'_>, TransactionAcqError> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:101:33
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut, TransactionAcqError>
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
101 | fn try_transact_mut_with<T>(&self, origin: T) -> Result<TransactionMut<'_>, TransactionAcqError>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:115:29
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
115 | fn transact_mut_with<T>(&self, origin: T) -> TransactionMut<'_>
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:123:17
|
123 | fn transact(&self) -> Transaction {
| ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
123 | fn transact(&self) -> Transaction<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/vendor/yrs-0.23.5/src/transact.rs:128:21
|
128 | fn transact_mut(&self) -> TransactionMut {
| ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | fn transact_mut(&self) -> TransactionMut<'_> {
| ++++
warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
Compiling docs-native-crdt v0.1.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/crdt)
warning: unused import: `XmlFragment`
--> src/projection.rs:3:68
|
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: function `branch` is never used
--> src/projection.rs:15:8
|
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
| ^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: `docs-native-crdt` (lib test) generated 2 warnings (2 duplicates)
warning: `docs-native-crdt` (lib) generated 2 warnings
warning: variable does not need to be mutable
--> src/bin/gc_undo_kept_probe.rs:26:9
|
26 | let mut record = |stream: &Vec<Vec<u8>>, editor: &Editor| {
| ----^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: `docs-native-crdt` (bin "gc_undo_kept_probe" test) generated 1 warning (1 duplicate)
warning: `docs-native-crdt` (bin "gc_undo_kept_probe") generated 1 warning (run `cargo fix --bin "gc_undo_kept_probe" -p docs-native-crdt` to apply 1 suggestion)
Finished `test` profile [unoptimized + debuginfo] target(s) in 17.83s
Running unittests src/lib.rs (native/crdt/target/debug/deps/docs_native_crdt-c8fa0a7f9f238f5b)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/bin/gc_undo_kept_probe.rs (native/crdt/target/debug/deps/gc_undo_kept_probe-8227e78843391a9c)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/bin/rule_wire_probe.rs (native/crdt/target/debug/deps/rule_wire_probe-a7d57536f39092dd)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/bin/update_wire_probe.rs (native/crdt/target/debug/deps/update_wire_probe-f5c3343a60c2f78d)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/bin/wire_fixture.rs (native/crdt/target/debug/deps/wire_fixture-ce79564514c68ca7)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/convergence_fuzz.rs (native/crdt/target/debug/deps/convergence_fuzz-56c958a83d7ba1ad)
running 2 tests
test three_editors_converge_with_causal_delivery has been running for over 60 seconds
test three_editors_converge_with_shuffled_duplicated_delivery has been running for over 60 seconds
test three_editors_converge_with_causal_delivery ... ok
test three_editors_converge_with_shuffled_duplicated_delivery ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 104.86s
Running tests/damaged_snapshots.rs (native/crdt/target/debug/deps/damaged_snapshots-08ecf149ce8ce891)
running 3 tests
test parked_content_reads_the_same_after_a_rebuild ... ok
test an_edit_on_a_damaged_replica_does_not_carry_what_it_parks ... ok
test every_damaged_snapshot_heals_by_catching_up_from_the_start_and_rebuilding ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s
Running tests/delete_tail_review.rs (native/crdt/target/debug/deps/delete_tail_review-4e851d2f2f708654)
running 4 tests
test deletion_received_before_any_source_update_is_preserved ... ok
test partially_known_delete_range_remains_deleted_when_tail_arrives ... ok
test unknown_client_deletion_survives_snapshot_before_source_arrives ... ok
test partially_known_delete_range_survives_snapshot_before_tail_arrives ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/display_mapping.rs (native/crdt/target/debug/deps/display_mapping-f6d21622fcdbf0a1)
running 5 tests
test a_text_holding_an_embed_maps_one_position_per_unit ... ok
test walk_matches_on_every_kind_of_node ... ok
test typing_anywhere_edits_exactly_that_display_position ... ok
test projection_is_unchanged_for_documents_without_embeds ... ok
test walk_matches_the_projection_mapping_on_edited_documents ... ok
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 7.09s
Running tests/gc_undo_kept.rs (native/crdt/target/debug/deps/gc_undo_kept-2e8792e4899e41b0)
running 4 tests
test yrs_collects_kept_children_of_a_collected_type ... ok
test a_snapshot_after_a_peer_deletes_a_kept_items_paragraph_holds_what_the_editor_shows ... ok
test every_update_and_snapshot_replays_into_plain_yrs_with_gc_on_and_off ... ok
test undoing_past_the_collected_paragraph_converges_with_the_peer ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running tests/gc_undo_kept_fuzz.rs (native/crdt/target/debug/deps/gc_undo_kept_fuzz-7bdddc7b15a1fa8a)
running 2 tests
test three_editors_with_undo_shuffled_and_duplicated ... ok
test three_editors_with_undo_in_causal_order ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 54.17s
Running tests/insert_into_deleted_parent.rs (native/crdt/target/debug/deps/insert_into_deleted_parent-4f2a48ab461a74eb)
running 3 tests
test an_undo_whose_neighbours_trace_to_one_item_places_it_as_every_peer_does ... ok
test an_item_undone_into_a_deleted_restored_parent_is_deleted_as_everywhere_else ... ok
test local_inserts_into_a_type_a_peer_deleted_are_deleted_as_everywhere_else ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/minimal_updates.rs (native/crdt/target/debug/deps/minimal_updates-816e64e5321d21ce)
running 4 tests
test a_command_that_changes_nothing_sends_an_empty_update ... ok
test applying_updates_records_nothing_for_the_next_command ... ok
test every_command_kind_converges_through_its_own_update_alone ... ok
test keystroke_update_is_independent_of_the_documents_history ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.54s
Running tests/projection_delta.rs (native/crdt/target/debug/deps/projection_delta-f7fd172b4b1a0cc6)
running 3 tests
test a_full_projection_resets_the_delta_base ... ok
test typing_reprojects_only_the_block_typed_in ... ok
test deltas_replay_to_the_whole_projection_through_every_kind_of_change ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 24.62s
Running tests/replica.rs (native/crdt/target/debug/deps/replica-8cd6d45eb6c2b2ae)
running 20 tests
test changing_block_preserves_existing_inline_formatting ... ok
test paragraph_split_keeps_prefix_identity_and_suffix_marks ... ok
test concatenated_log_applies_every_update ... ok
test reads_existing_yjs_fragment_without_rewriting ... ok
test deleting_and_replacing_inline_images_preserves_surrounding_text ... ok
test hard_break_is_inline_and_code_enter_does_not_split_block ... ok
test concurrent_insertions_and_own_undo_preserve_peer ... ok
test rich_paste_preserves_native_marks_and_existing_suffix ... ok
test merged_pending_updates_preserve_dependencies_deletes_and_duplicate_delivery ... ok
test cross_paragraph_replacement_keeps_prefix_id_and_formatted_suffix ... ok
test rich_paste_at_empty_block_keeps_heading_and_list_structure ... ok
test optimistic_newline_typeahead_resolves_new_paragraph_in_source ... ok
test list_item_sink_and_lift_keep_text_and_marks ... ok
test rich_paste_rule_retains_suffix_as_separate_paragraph ... ok
test select_all_replaces_multiple_native_text_nodes_and_terminal_separator ... ok
test utf16_edits_preserve_identity_and_marks ... ok
test selection_anchor_tracks_peer_insertion_in_utf16 ... ok
test distinct_display_generations_preserve_peer_and_authoritative_undo ... ok
test toggling_existing_list_changes_type_and_lifts_without_nesting ... ok
test input_rules_transform_and_backspace_restore_typed_prefix ... ok
test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running tests/rule_delta_convergence.rs (native/crdt/target/debug/deps/rule_delta_convergence-caeed77a7e946db6)
running 1 test
test every_rule_delta_converges_with_remote_apply ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running tests/snapshot.rs (native/crdt/target/debug/deps/snapshot-004d5a5366af72e7)
running 1 test
test a_snapshot_with_a_parked_update_heals_once_its_dependency_arrives ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/structural_commands.rs (native/crdt/target/debug/deps/structural_commands-8b961a4346522ad1)
running 5 tests
test quote_toggle_lifts_only_selected_block_preserving_prefix_identity_and_marks ... ok
test formatting_does_not_merge_unrelated_existing_adjacent_lists ... ok
test quote_range_can_lift_last_to_first_without_stale_ids ... ok
test quote_wrap_groups_selected_paragraphs_in_one_container ... ok
test adjacent_list_wrapping_merges_only_after_all_targets_are_applied ... ok
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests docs_native_crdt
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling serde_core v1.0.229
Compiling version_check v0.9.5
Compiling zerocopy v0.8.56
Compiling proc-macro2 v1.0.107
Compiling autocfg v1.5.1
Compiling quote v1.0.47
Compiling serde v1.0.229
Compiling cfg-if v1.0.4
Compiling unicode-ident v1.0.24
Compiling once_cell v1.21.4
Compiling libm v0.2.16
Compiling paste v1.0.15
Compiling downcast-rs v1.2.1
Compiling zmij v1.0.23
Compiling indexmap-nostd v0.4.0
Compiling multi-stash v0.2.0
Compiling smallvec v1.15.2
Compiling serde_json v1.0.151
Compiling arrayvec v0.7.8
Compiling spin v0.9.9
Compiling itoa v1.0.18
Compiling wasmparser-nostd v0.100.2
Compiling memchr v2.8.3
Compiling ahash v0.8.12
Compiling num-traits v0.2.19
Compiling syn v2.0.119
Compiling wasmi_core v0.32.3
Compiling num-derive v0.4.2
Compiling hashbrown v0.14.5
Compiling string-interner v0.17.0
Compiling wasmi_collections v0.32.3
Compiling wasmi v0.32.3
Compiling docs-native-host v0.1.0 (/home/ci/work/repos/oficina__docs/wt/spec__native-redesign/native/host)
Finished `test` profile [unoptimized + debuginfo] target(s) in 11.71s
Running unittests src/lib.rs (native/host/target/debug/deps/docs_native_host-e60fab76ea871d54)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/gc_undo_kept.rs (native/host/target/debug/deps/gc_undo_kept-2b97d1f4eb7f779f)
running 1 test
test a_kept_word_under_a_paragraph_a_peer_deletes_snapshots_whole_in_the_sandbox ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s
Running tests/sandbox.rs (native/host/target/debug/deps/sandbox-970356a1ca5b85e3)
running 9 tests
test long_edited_document_opens_and_types ... ignored, needs DOCS_LARGE_DOCUMENT; native/scripts/check-native.sh runs it
test fuel_budget_grows_with_the_instance_but_stays_bounded ... ok
test native_boundary_rejects_client_ids_that_v1_decoder_would_truncate ... ok
test failed_replica_cannot_be_reused ... ok
test interpreter_executes_native_crdt_without_host_imports ... ok
test generated_source_delta_applies_to_authority_with_protocol_client_ids ... ok
test selection_anchor_call_does_not_poison_source_interpreter ... ok
test hosts_share_the_compiled_module_but_never_state ... ok
test running_out_of_fuel_is_a_clean_failure_that_discards_the_instance ... ok
test result: ok. 8 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.46s
Doc-tests docs_native_host
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
amadan: job cancelled — a newer push superseded it
diff --git a/docs/superpowers/plans/2026-11-22-native-redesign.md b/docs/superpowers/plans/2026-11-22-native-redesign.md| index 1f63916..682d616 100644 |
| --- a/docs/superpowers/plans/2026-11-22-native-redesign.md |
| +++ b/docs/superpowers/plans/2026-11-22-native-redesign.md |
| @@ -1,180 +1,227 @@ |
| # Docs native redesign: slice plan |
| -Spec: `../specs/2026-11-22-native-redesign-design.md`. |
| +Spec: `../specs/2026-11-22-native-redesign-design.md` (revision 2). |
| -**Status:** not yet reviewed. The spec gets the highest-capability-model review (AGENTS.md) before any slice starts, and this plan follows whatever that review changes. |
| +**Status:** revision 2, after Claude Fable 5.2's review on oficina/docs #157. Fable re-reviews §6, §7 and S0/S1 before any slice starts, and this plan follows whatever that review changes. |
| **Ground rules for every slice:** |
| -- One worktree and branch per slice, a branch discussion, a whole-branch review by the highest available model, and Paul's approval of anything that was his call. |
| +- One worktree and branch per slice, a branch discussion, and a whole-branch review by the highest available model. |
| +- Paul approves anything that was his call. |
| - Hub CI exits 0 before the squash merge. |
| -- Each slice is shippable on its own, as a Docs native release (Mac plus TestFlight) through the existing release process. |
| -- Releasing still needs Paul's go-ahead, as now. |
| +- Each slice is shippable on its own, as a Docs native release (Mac plus TestFlight) through the existing release process. Releasing still needs Paul's go-ahead. |
| +- **iPad:** from S3 until S5, iPad keeps today's layout behind the idiom gate (spec §5). No slice ships the phone layout to iPad. |
| -**Gates every slice must keep green:** |
| -- `make ci` |
| -- `native/scripts/check-native.sh` (including the 200-page document) |
| -- `native/scripts/snapshots.sh compare` (re-recorded only where the slice changes a screen, with the contact sheet reviewed) |
| -- `test-document-window.py`, `test-home-loading.py`, `test-offline-kill.py`, `test-sync-latency.py` |
| -- `WorkspaceInitTests`, `SignedInLaunchTests`, `OfflineDurabilityTests`, `OficinaIDAdoptionTests` |
| +**Acceptance shared by every slice:** |
| +- **Copy review:** every new English string the slice introduces has been through copy review (the `paulca/agent-skills` copy-review skill, `serve.sh`; check `result.json` before re-upping), and the result is recorded in the slice's discussion before it lands. The twelve translations follow the reviewed English. |
| +- **Physical devices:** one pass on a physical Mac and iPhone (and iPad from S5), recorded in `native/REVIEW.md` before the release (spec §11). |
| +- **Gates:** |
| + - `make ci` |
| + - `native/scripts/check-native.sh` (including the 200-page document) |
| + - `native/scripts/snapshots.sh compare` (re-recorded only where the slice changes a screen, with the contact sheet reviewed) |
| + - `test-document-window.py`, `test-home-loading.py`, `test-offline-kill.py`, `test-sync-latency.py` |
| + - `WorkspaceInitTests`, `SignedInLaunchTests`, `OfflineDurabilityTests`, `OficinaIDAdoptionTests` |
| + - §7's hard counters (from S1 on) |
| +- **Tests fail first:** each new test was seen to fail for the intended reason (AGENTS.md). |
| + |
| +## S0: editor snapshots on main |
| + |
| +Branch `test/editor-snapshots`. Small, and first. Spec §11 "Editor snapshots". |
| + |
| +**Work:** |
| +1. Add the fixed-fixture editor screens to `DocsSnapshots`, drawn by today's renderer: |
| + - Mac paged and pageless at 100% and 150%; |
| + - iPhone paged and pageless; |
| + - light and dark, iPhone at default and AX3. |
| +2. The fixture is laid out synchronously before capture. Remove the "editor is not here" exclusion comment. |
| +3. If `RastrilloSnapshots` cannot set a per-screen locale (needed from S2a for ar and ru), add that to rastrillo/native and re-pin. |
| + |
| +**Acceptance:** |
| +- The new baselines are recorded and reviewed. |
| +- They are stable across three consecutive `compare` runs. |
| +- A deliberate one-point change to the paper margin reddens them. |
| ## S1: render isolation, per-block rendering, incremental pagination |
| Branch `perf/native-render-isolation`. No visible change. Spec §7. |
| **Work:** |
| -1. Bring the audit probes onto the branch from `perf/native-realtime-audit`: |
| - - `native/benchmarks/realtime/`, `RealtimeAudit*Tests` and `DocsAuditProbe`; |
| - - env-gated, and compiled to nothing in a release build; |
| - - plus the two new counters, host body evaluations and block renders. |
| - - Record the baseline on main (post phase 2) in `native/benchmarks/README.md`. |
| -2. `CRDTReplica` presentations return `(projection, change)` from `project_delta`. `DocsModel` stops holding the projection as observed state. |
| -3. Add `DocumentSurface` with: |
| - - the per-block cache and the block index; |
| - - `NativeTextProjection.renderBlock`; |
| - - neighbour-only spacing; |
| - - per-block image re-render. |
| -4. Per-block reconciliation on both platforms. iOS stops assigning `attributedText` after open. |
| -5. Isolate the text view's host from `syncStatus`, `selection`, `detail`, `editing`, `typingMarks`, `inputPaused` and the projection: |
| - - the sync row and the toolbar move into subviews that read their own facets; |
| +1. Bring the audit probes onto the branch from `perf/native-realtime-audit`, under the `DOCS_PROBES` compilation condition, and add the new counters. |
| + - **Record the post-phase-2 baseline** for every §7 row in `native/benchmarks/README.md`. |
| + - Confirm or adjust the timing targets, with reasons, in the S1 discussion before step 2. |
| +2. `CRDTReplica`: `presentedRevision`, the bounded dirty log, and `dirtyBlocks(since:)` with unknown entries for non-delta paths. Presentations return `resultRevision`. |
| +3. `DocumentSurface`: |
| + - `appliedRevision`, `pendingDirty` and the full-diff fallback (`CRDTNode: Equatable`); |
| + - the two-pointer block walk; |
| + - `renderBlock` with neighbour spacing; |
| + - image- and font-scoped re-render; |
| + - `flushIfDeferred()` from the text view's render and marked-text hooks. |
| +4. Per-block reconciliation on both platforms. iOS assigns `attributedText` only at open. |
| +5. Isolate the text view's host: |
| + - the sync row and the toolbar read their own facets; |
| - `DocumentToolbarSelection` becomes one equality-guarded observed value; |
| - - `DocumentCommands`, `DocsToolsControls` and `DocsEditorContext` read the live storage, not a fresh `render`. |
| -6. Equality-guard every observed assignment in `DocsModel`. |
| -7. Incremental Mac pagination: |
| - - re-measure only the edited block; |
| - - recompute breaks arithmetically from its page; |
| - - layout coalesced and non-contiguous; |
| - - drop `measurementContent`, `isEqual` and the second layout stack. |
| -8. On iOS, `layoutSubviews` no longer forces whole-document layout. |
| + - `DocumentCommands`, `DocsToolsControls` and `DocsEditorContext` read the live storage; |
| + - equality-guard every observed assignment in `DocsModel`. |
| +6. Mac pagination: |
| + - the break table keyed by block id with relative offsets; |
| + - cached natural geometry; |
| + - recompute from the edited block's page until convergence; |
| + - range invalidation from the first moved break; |
| + - frame height from the plan; |
| + - non-contiguous layout; |
| + - today's measurement moved into the test target as `DocumentPageLayoutOracle`. |
| +7. iOS: no whole-document `ensureLayout` in `layoutSubviews`; non-contiguous layout. |
| + |
| +**Acceptance:** |
| +- **Hard counters:** every §7 hard counter is met at p20 and p200h. |
| +- **Timings:** the timing targets as confirmed in step 1 are met under the tolerance rule. Baseline and after are recorded with the machine, load and build. |
| +- **Property tests:** block render equivalence and pagination equivalence (plan, line origins within 0.5pt, frame height) pass. Each was seen to fail with its mechanism broken (a skipped neighbour re-spacing; a break left keyed by character index). |
| +- **Delta safety:** the real-text-view test passes: dropped and delayed publications, extra projections, ja and zh marked text with peer edits, log overflow. |
| +- **Large documents:** on p200h, jump to the end before any full layout, then type. The caret-against-glyph check passes, and the page numbers equal the oracle's. The smoke test's caret checks and the composition-before-separator regression pass. |
| +- **No visual change:** S0's editor snapshots are unchanged, as are all other baselines. |
| + |
| +## S2a: Mac document window, floating inspector, subtitle |
| + |
| +Branch `native/mac-document-window`. Spec §1 (except Share and Delete), §6, §8, §9. |
| + |
| +**Work:** |
| +1. **Header spike (half a day):** a custom title area with the system title hidden but set. Record the result and the chosen contract (or the fallback) in the S2a discussion before step 2. |
| +2. **rastrillo/native:** export `SyncStatusAnnouncer`, then re-pin the kit. |
| +3. **The header:** |
| + - the title area with rename in place; |
| + - the subtitle with every §6 row and the 1 s debounce in a `.task`; |
| + - the undo/redo pill; |
| + - the Format toggle. |
| + |
| + The `.principal` item is deleted. Share… keeps today's sheet until S2b. |
| +4. **`refreshAccess`:** 403 and 404 → "No longer available"; 401 unchanged; a 200 with `can_write == false` → View only in place. |
| +5. **The floating inspector:** sections, glass and rim; app-wide `docs.inspector.open`, default open; focus stays in the text view. |
| +6. **Page centring by translation:** |
| + - the container becomes a fixed paper band; |
| + - the desk is drawn by the clip view; |
| + - the web's clamp in window points. |
| +7. **Reader mode.** |
| +8. **Menus:** |
| + - View: Show/Hide Format ⌥⌘I, the Paged/Infinite pair, native-only Zoom; |
| + - Format: relabelled to the web keys, H1–3; |
| + - Tools: Word count…; |
| + - Help: Keyboard shortcuts…, Colophon; |
| + - File: Open a document… ⌘K as a sheet over the focused window. |
| +9. **Remove** the Mac strip, the inspector column and the sync row. |
| +10. **Strings and snapshots:** |
| + - the §8 keys this slice uses, after copy review, in twelve languages; |
| + - orphaned `Mac.strings` keys deleted; |
| + - snapshots: Mac document with the inspector open and closed, and reader, in light, dark, ar and ru. |
| **Acceptance:** |
| -- **Performance:** every §7 target is met at p20 and p200h, with before and after recorded. |
| -- **Equivalence:** both property tests pass (block render, pagination), and each was observed failing when its mechanism was broken deliberately. |
| -- **Isolation:** the render-isolation test passes. |
| -- **Caret:** the smoke test's caret-against-glyph checks and the composition-before-separator regression pass. |
| -- **No visual change:** snapshot baselines are unchanged. |
| +- **Header:** the window title equals the document title, there is exactly one visible title, and a launch test asserts there is no `.principal` item. |
| +- **Subtitle:** each §6 row is reachable by a unit test, including 401, 403 and 404. |
| +- **Format:** ⌥⌘I flips it in all windows and persists across relaunch. It is disabled for readers and in the home window. |
| +- **Centring:** hosted-window frames match the rule at all six widths, including the 1,108pt boundary. Inspector toggle and live resize meet the §7 per-frame target, with no layout invalidated. |
| +- **Performance:** the §7 hard counters still hold. |
| -## S2: Mac document window |
| +## S2b: Share popover and Delete… |
| -Branch `native/mac-document-window`. Spec §1, §6, §8, §9. |
| +Branch `native/share-and-delete`. Spec §1 Share popover and Delete…. |
| **Work:** |
| -1. The header: |
| - - one title, renamed in place, with the `.principal` item deleted; |
| - - the subtitle with §6's precedence and 1 s saving debounce; |
| - - the undo/redo pill, Format and Share…. |
| -2. The floating inspector: |
| - - sections as specified; |
| - - glass and rim; |
| - - the app-wide `docs.inspector.open`, default open; |
| - - the page-centring rule; |
| - - focus that stays in the text view. |
| -3. The Share popover over the web's `docs.share.panel.*` model: |
| - - the team switch (existing native POST); |
| - - the link switch with the once-only URL; |
| - - hold, revert and the 500 ms spinner; |
| - - focus rules. |
| - |
| - It replaces `DocsSharingView`'s sheet on the Mac. |
| -4. Reader mode, including losing access in place. |
| -5. Menus: |
| - - View: Show/Hide Format ⌥⌘I, Pages, Zoom, Actual size; |
| - - a new Tools menu: Word count…, Keyboard shortcuts…; |
| - - File: Open a document… ⌘K, Delete…; |
| - - Help ▸ Colophon. |
| -6. Delete…: |
| - - the server: `deletePost` answers native JSON (`{"ok":true}`, no re-read), with a Go test; |
| - - the client: refused with unsent changes, then close the window and drop the lane and replica. |
| -7. Remove the strip on the Mac, the inspector column and the sync row. |
| -8. Strings: the §8 keys in twelve languages, and the orphaned `Mac.strings` keys deleted. |
| -9. Snapshot screens: Mac document with the inspector open and closed, reader, and share popover. |
| +1. **Server:** |
| + - `deletePost` answers native JSON (`{"ok":true}`, no re-read); |
| + - the Go matrix: owner, writer grantee, reader, guest, team non-owner, already deleted, lookup-failure JSON, browser 303 unchanged, suite feed. |
| +2. **The Share popover** over the `docs.share.panel.*` model: |
| + - the team switch and the link switch; |
| + - hold, revert, the 500 ms spinner, a single submit; |
| + - the once-only URL, non-transient while it shows; |
| + - focus rules; |
| + - disabled offline and for drafts. |
| + |
| + It replaces `DocsSharingView`'s sheet on the Mac, and iPhone gets the same panel as a sheet. |
| +3. **The Delete… client:** |
| + - the version-skew rule (non-JSON → re-GET; 404 = deleted); |
| + - lost-answer retries; |
| + - refused with unsent changes; |
| + - after a delete: drop the lane and replica; close the window or pop to the library; refresh the list, Recent and thumbnails. |
| +4. **Strings and snapshots:** |
| + - `docs.share.panel.*`, `docs.delete.*`, `native.share.offline`, `native.export.offline` and `native.delete.unsent`, after copy review; |
| + - snapshot: the share popover in light, dark, ar and ru. |
| **Acceptance:** |
| -- **Header:** exactly one title, and a launch test asserts there is no `.principal` item. |
| -- **Format:** ⌥⌘I toggles it in all windows and persists across relaunch. |
| -- **Readers:** no undo/redo, Format, Share or inspector, and the Format menu is disabled. |
| -- **Centring:** the formula holds at the four widths. |
| -- **Popover:** |
| - - the once-only URL shows once; |
| - - Share while open is a no-op; |
| - - Esc returns focus to Share…. |
| -- **Delete:** owner-only (404 otherwise), and works end to end against the fixture server. |
| -- **States:** every §6 row is reachable by a unit test. |
| -- **Gates:** §7 targets still met, and the new snapshots recorded and reviewed. |
| +- **Server:** the Go matrix passes, and the server change is deployed to prod and lagged before the client is released (`curl /api/version` on each). |
| +- **Delete client:** the Swift client-rule tests pass: JSON; 303 then 404; 303 then 200; 404 on the POST. |
| +- **Popover:** the once-only URL shows once and survives an outside click. Share while open is a no-op. Esc returns focus to Share…. |
| ## S3: iPhone document |
| -Branch `native/iphone-document`. Spec §3, §6. iPad shows this layout at every width until S5. |
| +Branch `native/iphone-document`. Spec §3, §6. Behind the iPad gate: iPad unchanged. |
| **Work:** |
| -1. The library becomes a `NavigationStack` root and the document is pushed. The `NavigationSplitView` goes. |
| -2. The header: |
| +1. **iPhone navigation:** the library becomes a `NavigationStack` root and the document is pushed. iPad keeps the `NavigationSplitView`. |
| +2. **The header:** |
| + - the large title hosted inside the text view's scroll view, through `DocumentHeaderState`; |
| + - collapse on scroll, keyboard and sheet; |
| - back, the undo/redo pill, Aa and •••; |
| - - the large title and subtitle; |
| - - the collapse on scroll, keyboard and sheet; |
| - Rename by alert; |
| - no Share pill. |
| -3. The ••• menu per capability: Share…, Rename, Export ▸, Word count…, Open a document…, Pages, Help ▸, Delete…. |
| -4. The Format sheet: |
| +3. **The ••• menu** per capability, with the Paged/Infinite pair and Help ▸ Keyboard shortcuts…, Colophon. |
| +4. **The Format sheet:** |
| - the `.medium` detent with background interaction; |
| - - the selection kept in view by the inset; |
| + - the empty `inputView` keeping first responder and the selection; |
| + - the inset following the sheet; |
| + - typing marks; |
| - styles Body text and Heading 1–3 in their own faces; |
| - font, the size stepper, marks, alignment, lists and indent; |
| - the AX re-flow. |
| -5. The keyboard bar: Aa, B, I, the three lists and Hide keyboard, with selected states, for writers only. |
| -6. The share sheet: the S2 panel at `.medium` and `.large`. |
| -7. The reader layout. |
| -8. Remove the iOS strip, the toolbar items and the sync row. |
| -9. Snapshot screens: the iPhone document, reader, format sheet and share sheet, at default and AX3. |
| +5. **The keyboard bar** as `inputAccessoryView`, writers only. |
| +6. **The reader layout.** |
| +7. **Remove** the iOS strip, the toolbar items and the sync row on iPhone only. |
| +8. **Strings and snapshots:** |
| + - `native.more`, `native.keyboard.hide` and the sheet's labels, after copy review; |
| + - snapshots: the iPhone document, reader, format sheet and share sheet, at default and AX3, in light, dark, ar and ru. |
| **Acceptance:** |
| - **XCUITest:** |
| - - the keyboard bar appears with the keyboard, writers only; |
| - - Aa opens the sheet with the selection visible; |
| + - the keyboard bar appears with the keyboard, writers only, and with a hardware keyboard; |
| + - Aa opens the sheet with the selection highlight still visible; |
| - the collapse triggers work; |
| - the ••• items match each capability. |
| +- **iPad:** an iPad simulator still shows today's layout. |
| +- **VoiceOver:** a peer edit does not move the cursor (spec §11). |
| - **Accessibility:** `performAccessibilityAudit()` passes on the document, sheet and share sheet. |
| -- **Performance:** the iOS §7 targets are met on the simulator. |
| -- **Rules:** the hard rules' tests stay green. |
| +- **Performance:** the iOS §7 counters and targets hold. |
| ## S4: Mac home and iPhone library |
| -Branch `native/home-and-library`. Spec §2, §4. |
| +Branch `native/home-and-library`. Spec §2, §4. The iPad library is unchanged (gate). |
| **Work:** |
| -1. Decode `thumbnail.Excerpt`. Add a shared `LibraryModel`: |
| - - the shelf of five; |
| - - Today, Yesterday, This week and Earlier in the device calendar; |
| - - searching ungrouped. |
| -2. Mac home: the window toolbar has "Documents", search, the filled + and the avatar with its menu. The content is the shelf, then the grouped rows card. Remove the sidebar and the large title. |
| -3. iPhone library: |
| - - the large title and avatar (with Colophon); |
| - - search and compose in the bottom toolbar; |
| - - the shelf and rows; |
| - - pull to refresh. |
| -4. The empty, no-results and failure states on both. |
| -5. Snapshot baselines: home and library (default, empty, no results), replacing `library*`. |
| +1. Decode `thumbnail.Excerpt`. Add the shared `LibraryModel`: the shelf of five, the four groups in the device calendar, searching ungrouped. |
| +2. **Mac home:** the window toolbar has "Documents", search, the filled + and the avatar with its menu. The content is the shelf, then the grouped rows card. Remove the sidebar and the large title. |
| +3. **iPhone library:** the large title and avatar (with Colophon); search and compose in the bottom toolbar; the shelf and rows; pull to refresh. |
| +4. **States:** empty, no results and failure on both. |
| +5. **Strings and snapshots:** |
| + - `native.list.recent`, after copy review; |
| + - snapshot baselines: home and library (default, empty, no results), replacing `library*`, in light, dark, ar and ru. |
| **Acceptance:** |
| - **Library model:** grouping and shelf tests in a fixed time zone; excerpt decoded. |
| - **Avatar menu:** the guards are unchanged (`OficinaIDAdoptionTests`, the team-picker-blocked snapshot). |
| -- **Launch tests:** building the home body changes nothing it watches (`SignedInLaunchTests`), and the home-loading test passes. |
| +- **Launch tests:** building the home body changes nothing it watches, and the home-loading test passes. |
| ## S5: iPad, and polish |
| Branch `native/ipad-and-polish`. Spec §5, §9, §11. |
| **Work:** |
| -1. iPad at regular width: |
| - - the library in the Mac home's form; |
| - - the document with the Mac header in the navigation bar, the floating inspector, the Share popover and •••; |
| - - `.commands` in the iPadOS 26 menu bar. |
| -2. Size-class transitions keep the text view, selection, scroll and undo. The inspector and sheet hand-off is as specified. |
| -3. A Dynamic Type, Reduce Motion, Reduce Transparency and Increase Contrast pass over every new screen. |
| -4. iPad snapshot screens (regular and compact), and a full re-record review. |
| -5. Update `native/PARITY.md` and `native/REVIEW.md` with what was verified on devices and what was not. |
| +1. **Remove the iPad gate.** |
| + - **Regular width:** the library in the Mac home's form; the document with the Mac header contract in the navigation bar, the floating inspector (with the centring rule in the text view's points), the Share popover and •••; `.commands` in the iPadOS 26 menu bar. |
| + - **Compact width:** the iPhone layout. |
| +2. **Size-class transitions** keep the text view, selection, scroll and undo. The inspector and sheet hand-off is as specified. |
| +3. **Delete** the old iPad chrome (`EditorToolbar` and the `NavigationSplitView` path), now that nothing uses it. |
| +4. **A pass** over Dynamic Type, Reduce Motion, Reduce Transparency, Increase Contrast and RTL on every new screen. |
| +5. **iPad snapshot screens** (regular and compact, light, dark, ar, ru), and a full re-record review. |
| +6. **Update `native/PARITY.md` and `native/REVIEW.md`:** iPad's geometric pagination, its scenes and restoration, and what was verified on devices. |
| **Acceptance:** |
| -- **Size changes:** an iPad simulator test splits to compact and back with text selected. The selection and scroll survive, and no whole-document render occurs. |
| +- **Size changes:** an iPad simulator test splits to compact and back with text selected. The selection and scroll survive, with no whole-document render. |
| - **Keyboard:** the hardware-keyboard shortcuts work through the menu bar. |
| - **Accessibility:** the audit passes at regular and compact. |
| -- **Performance:** the §7 targets still hold. |
| +- **Performance:** the §7 counters and targets still hold. |
diff --git a/docs/superpowers/specs/2026-11-22-native-redesign-design.md b/docs/superpowers/specs/2026-11-22-native-redesign-design.md| index b2ea807..4180040 100644 |
| --- a/docs/superpowers/specs/2026-11-22-native-redesign-design.md |
| +++ b/docs/superpowers/specs/2026-11-22-native-redesign-design.md |
| @@ -1,14 +1,22 @@ |
| # Docs native redesign: Mac, iPhone and iPad (SwiftUI) |
| -Status: revision 1, 2026-11-22. Not yet reviewed. AGENTS.md requires the highest-capability-model review before the plan (`../plans/2026-11-22-native-redesign.md`) is worked. |
| +Status: revision 2, 2026-11-22. |
| +- Revision 1 (8354b32) was reviewed by Claude Fable 5.2 on oficina/docs #157: CHANGES NEEDED. |
| +- This revision answers all 19 findings in place. "Revision 2: changes from #157", at the end, maps each finding to its answer. |
| +- The coordinator's rulings on findings 12 and 15 are applied. |
| +- Fable asked for a re-review of §6, §7 and S1 before the plan (`../plans/2026-11-22-native-redesign.md`) is worked. |
| + |
| Branch: `spec/native-redesign`. Implementation branches follow the plan's slices. |
| + |
| Mock-ups: `design/native-levelup-mockups` b700109 (`native/apple/Tests/DocsMockups`, `native/scripts/mockups.sh`, `native/scripts/mockups-page/`), shown at `polish-audit/docs-native/index.html`. They are real SwiftUI drawn to PNG and wired to nothing. They are the reference for look and measurements, matched by screenshot, not code to copy. |
| + |
| Web reference: Docs web I2 (`2026-11-11-editor-i2-design.md`, main faad78a): stacked header, undo/redo in the header, Format toggles a floating inspector, Share as a popover over a server-rendered panel, readers get no formatting chrome. |
| + |
| Performance reference: `oficina/native-levelup/docs-realtime-audit.md` (findings 3, 4 and 10), and the engine's per-block `project_delta` (main c715478). |
| ## Why |
| -Paul, 2026-11-21: "Can we have the Desktop and mobile apps reflect the web apps a bit more now?" The mock-up agent drew A/B directions. Paul ruled on 2026-11-22. The audit adds that the editor's main-thread rendering still costs O(document) per key, and that work rides with this redesign because it rebuilds the same views. |
| +Paul, 2026-11-21: "Can we have the Desktop and mobile apps reflect the web apps a bit more now?" The mock-up agent drew A/B directions, and Paul ruled on 2026-11-22. The audit adds that the editor's main-thread rendering still costs O(document) per key, and that work rides with this redesign because it rebuilds the same views. |
| ## Rulings and defaults |
| @@ -20,43 +28,69 @@ Paul, 2026-11-21: "Can we have the Desktop and mobile apps reflect the web apps |
| 4. **No Share pill beside the iPhone title.** Share lives in the ••• menu. |
| 5. **iPhone library is option B:** iOS bars, with search and New at the bottom. |
| +**Coordinator's rulings on the review (2026-11-22, binding):** |
| + |
| +- **iPad keeps today's layout from S3 until S5,** behind a size-class and idiom gate. iPad never shows the phone layout in between. |
| +- **S2 is split** into S2a (the Mac document window, floating inspector and subtitle) and S2b (the Share popover, and Delete… with its server change). |
| +- **New English strings go through copy review** (the `paulca/agent-skills` copy-review skill, `serve.sh`) before the slice that introduces them lands. |
| + |
| **Defaults where Paul did not answer.** Each is one constant or one branch, so it is easy to flip: |
| | # | Default | |
| |---|---| |
| | D1 | The inspector is open by default. Its state is remembered app-wide (`@AppStorage("docs.inspector.open")`), not per window. | |
| -| D2 | Zoom, Pages, Word count and Export live only in the View, Tools and File menus, as on the web. The inspector has no Document tab. | |
| -| D3 | A subtitle under the title ("<Team> · Saved", "<Team> · View only") replaces today's sync status row. Every state the row shows today is expressible in it or in a banner (§States). | |
| +| D2 | Pages/Infinite, Word count and Export live only in the View, Tools and File menus, where the web has them. There is no Document tab in the inspector. Zoom stays in View on the Mac as a native-only item: the web has none. | |
| +| D3 | A subtitle under the title ("<Team> · Saved", "<Team> · View only") replaces today's sync status row. Every state the row shows today is expressible in it or in a banner (§6). | |
| | D4 | The Mac shows the account avatar in the home window only. Document windows reach the account through the app menu. | |
| | D5 | The page stays white in dark mode. The desk and the chrome follow the theme. | |
| -| D6 | iPad uses the Mac layout at regular width and the iPhone layout at compact width. | |
| +| D6 | iPad uses the Mac layout at regular width and the iPhone layout at compact width, from S5. Until then iPad keeps today's layout. | |
| +| D7 | The subtitle's team is the account's team ("the team you're in"), even on a private document or one shared in from elsewhere. The detail answer carries no visibility. Paul may prefer to add `visibility` (§13 Q4). | |
| **Corrections to the mock-ups.** These are facts, not choices: |
| - The iPhone sheet drew a "Title" style. Docs has no Title style. The styles are the web's: Body text, Heading 1, Heading 2 and Heading 3 (`docs.editor.toolbar.block.*`). |
| - The ••• menu's "Jump To…" is the web's "Open a document…" (`docs.editor.menu.file.open`, ⌘K). |
| +- Keyboard shortcuts… is in Help, as on the web (`menu.go`), not in Tools. |
| ## 1. Mac document window |
| -### Header (the window's toolbar; one block) |
| +### Header contract |
| + |
| +One contract, confirmed by a half-day spike at the start of S2a. The spike result is recorded in the S2a discussion before the header is built. |
| + |
| +- **The window title is always the document's title.** It is set with `.navigationTitle(title)`, so the Window menu, Mission Control, the Dock menu and VoiceOver's window name are right. It is never drawn twice. |
| +- **The visible title area is Docs' own view,** placed at the toolbar's leading edge (`ToolbarItem(placement: .navigation)`). The system-drawn title is hidden (`.toolbar(removing: .title)`) while `.navigationTitle` stays set. |
| -- **One title.** The window title is the document's title, and nothing else draws it. Delete the `.principal` `ToolbarItem` (`documentTitle`) in `DocsWorkspace.editor`: today it draws the title a second time, next to `.navigationTitle`. |
| - - The title sits at the toolbar's leading edge with the subtitle under it (`.navigationTitle` plus `.navigationSubtitle`). |
| -- **Rename in place.** Double-clicking the title, File ▸ Rename (⇧⌘R) or the title's context menu edits the title where it is. |
| + The title area holds: |
| + - the title in 15pt semibold; |
| + - under it, the subtitle in 11pt, with §6's styles (muted, or negative semibold), the eye glyph for View only, and one accessibility element with `.updatesFrequently`. |
| + |
| + `.navigationSubtitle` is not used: on macOS it is a plain string and cannot carry those styles. |
| +- **Spike fallback.** If the spike shows the system title cannot be hidden while still set, the header uses the system title with a plain `.navigationSubtitle`. §6's styling requirements then drop to text alone: |
| + - negative states put their words in the subtitle and also raise the §6 banner; |
| + - View only is written in words; |
| + - the subtitle's announcements are posted from the banner's view instead. |
| + |
| + The S2a discussion records which of the two shipped. |
| +- **The `.principal` `ToolbarItem` is deleted** (`documentTitle` in `DocsWorkspace.editor`). It is what draws the title a second time today. |
| +- **Rename in place.** Double-clicking the title area, File ▸ Rename (⇧⌘R) or the title's context menu turns the title text into a field in the same place. |
| - It commits through `model.commitRename()` on Return or focus loss. Esc reverts. |
| - - Use SwiftUI's editable title (`navigationTitle(_: Binding<String>)`) if it meets that commit/revert rule. If not, use a title field in `.navigation` placement styled identically. Either way there is never a second title. |
| - Only people who can write may rename. |
| -- **Subtitle:** see §States. |
| - **Trailing controls, in this order, 8pt apart:** |
| 1. **Undo/redo:** one pill holding two icon buttons with a hairline between them (`docs.editor.toolbar.undo` / `.redo`; group label `docs.editor.toolbar.history`). Each is enabled from `canUndo` / `canRedo`. |
| - 2. **Format:** a quiet pill with a pencil icon (`docs.editor.inspector.toggle`) that toggles the inspector. |
| + 2. **Format:** a quiet pill with a pencil icon (`docs.editor.inspector.toggle`). |
| + - It is a toggle: a SwiftUI `Toggle` with a button style, so VoiceOver says "Format, toggle button, on/off". |
| - It is accent-soft with accent text while the inspector is open. |
| - - Accessibility: the `.isSelected` trait, and the value "on" or "off". |
| - 3. **Share…:** the one filled accent pill (`docs.share.action`). |
| + - It carries no other selected or value semantics (Low 13). |
| + 3. **Share…:** the one filled accent pill (`docs.share.action`). S2b; in S2a it opens today's sharing sheet. |
| - **Who sees which control:** |
| - Undo/redo and Format need `can_write`. |
| - - Share… needs `can_share` (owners only, as on the web). |
| + - Share… needs `can_share`, which is owner and member, the web's rule. |
| - A draft that is not yet created on the server has no Share…. |
| -- **Removed:** the formatting strip (`EditorToolbar`), the trailing inspector column (the `safeAreaInset` `Form` with zoom, Pages and tools), and the sync status row (`NativeSyncStatusView` above the editor). |
| +- **Kit dependency.** The subtitle reuses the kit's sync wording (`NativeSyncStrings.text(for:)`) and its announcement rule. `NativeSyncStatusView.sameKind` is internal today. |
| + - A rastrillo/native change exports the rule as a public `SyncStatusAnnouncer`, with `sameKind`, `isAnnounced` and `announce(old:new:)`. |
| + - `NativeSyncStatusView` and Docs both use it. |
| + - Docs re-pins the kit in S2a. |
| +- **Removed:** the formatting strip (`EditorToolbar`), the trailing inspector column (the `safeAreaInset` `Form` with zoom, Pages and tools), and the sync status row. |
| ### Floating inspector (ruling 1) |
| @@ -67,34 +101,54 @@ Paul, 2026-11-21: "Can we have the Desktop and mobile apps reflect the web apps |
| - Sections sit 14pt apart. Section labels are 11pt, semibold and muted. |
| - **Sections** (web keys as labels, each an accessibility group named by its label): |
| - **Style** (`docs.editor.toolbar.group.style`): |
| - - The paragraph style pop-up at full width: Body text and Heading 1–3, each drawn in its own face. |
| + - The paragraph style pop-up at full width: Body text and Heading 1–3, each in its own face. |
| - Font and Size on one row, with a 64pt size column. Font lists families in their own faces (`DocsFontPopUp`). Size is the eleven values 8–72. |
| - **Text** (`…group.text`): Bold, Italic and Code, as a joined segmented row of 28pt buttons. |
| - **Alignment** (`…group.align`): left, centre and right. |
| - **Lists** (`…group.lists`): |
| - Bulleted list, Numbered list and Quote. |
| - A second row: Decrease indent, Increase indent and Clear formatting. |
| - - The web's inspector has no second row. The mock-up's does, and native keeps it, so these stay one click away now the strip has gone. |
| + - The web's inspector has no second row. The mock-up's does, and native keeps it (§13 Q2). |
| - **Behaviour:** |
| - - The controls act on the text view's selection and never take first responder: clicking one leaves the caret where it was. |
| + - The controls act on the text view's selection and never take first responder: a click leaves the caret where it was. |
| - Selected states (`.isSelected`, accent) come from `DocumentToolbarSelection`, the same source the menus use. |
| - With Full Keyboard Access, the inspector comes after the header controls in the key-view loop. In the text view, Tab keeps indenting and ⌃Tab leaves (standard AppKit). |
| - **Visibility:** |
| - - Format, View ▸ Show/Hide Format (⌥⌘I) and the toolbar button all flip the one app-wide state (D1). |
| - - The inspector is never shown to a reader, whatever the stored state, and showing a reader's window does not change that state. |
| - - It appears and disappears without moving the text or the caret. |
| -- **Page centring:** |
| - - The page stays centred unless the inspector needs the room, by the web's rule. |
| - - Trailing desk padding = `max(16, 16 + P + 2R − W)`, where: |
| - - `P` is the paper width × zoom; |
| - - `R` = 248 + 12 + 16; |
| - - `W` is the desk's width (the scroll view's content width, not the window's). |
| - - With the inspector closed, the page is plainly centred. |
| - - Below `W = P + 2·16 + R` the page reaches its 16pt leading padding and the inspector overlaps the page's trailing side. That is the cost Paul accepted with B. ⌥⌘I hides it. |
| - - The inspector scrolls inside itself if the window is too short. |
| -- **Not an `.inspector`.** It is an overlay in the editor's `ZStack`, not SwiftUI's `.inspector`. The code records that a closed `.inspector` invalidates hosting constraints on macOS 27 while the editor loads. |
| - |
| -### Share popover |
| + - The Format toggle and View ▸ Show/Hide Format (⌥⌘I) flip the one app-wide state (D1). |
| + - A reader never sees it, whatever the stored state, and a reader's window does not write the state. |
| + - Show/Hide Format is disabled in a reader's window and in the home window. |
| +- **No `.inspector`.** It is an overlay in the editor's `ZStack`, not SwiftUI's `.inspector`. The code records that a closed `.inspector` invalidates hosting constraints on macOS 27 while the editor loads. |
| + |
| +### Page centring (the web's rule, in the window's points) |
| + |
| +- **Coordinate spaces:** |
| + - The page lives in the scroll view's document space: paper 612pt wide, magnified by `m = 4/3 × zoom` (`NativeDocumentTextView`). |
| + - The inspector and the desk are in window points. |
| + - All centring arithmetic is in window points, with `P = 612 × m`. |
| +- **The rule** is the web's `show.html` rule exactly. Trailing desk padding: |
| + |
| + `E = clamp(16, 16 + P + 2R − W, R)` |
| + |
| + where: |
| + - `R` = 248 + 12 + 16 = 276; |
| + - `W` is the clip view's width in window points (not the window's: no title-bar or scroller arithmetic); |
| + - the leading padding is 16. |
| + |
| + The page is centred in the band `[16, W − E]`. |
| + - With the inspector closed, `E = 16` and the page is plainly centred. |
| + - At `W ≥ P + 16 + R`, the page clears the inspector. At zoom 100% that is 1,108pt. |
| + - Below that, `E = R`. The page's leading edge stays at 16, and the page runs under the inspector on its trailing side. The page never reflows or shrinks; that overlap is the cost Paul accepted with B, and ⌥⌘I hides the inspector. |
| +- **Moving the page never relayouts the text.** |
| + - Today the centring lives in the text container (`DocsPageGeometry.paperX`), so any change of width relayouts the document. |
| + - From S2a, the container's geometry is a fixed paper band (`viewportWidth` = the paper width). The page's horizontal position is a translation of the text view within the clip view, from the rule above. |
| + - The desk is drawn by the clip view's background, not by the text view. |
| + - So toggling the inspector and live-resizing are O(1): the page slides, the text never reflows, and the caret keeps its place in the text. |
| +- **"The inspector appears without moving the text" is withdrawn.** It may move the page sideways, per the rule; it never reflows it. |
| +- **Tests:** |
| + - A pure unit test of `E` at W = 1800, 1440, 1280, 1108, 1000 and 920pt, at zoom 1.0 and 1.5, open and closed. |
| + - A hosted-window test that measures the page's and the inspector's frames in window coordinates at the same widths, including the exact boundary (finding 5). |
| + |
| +### Share popover (S2b) |
| - **Opening:** Share… opens a popover anchored under its button (arrow at top, 420pt wide). It replaces `DocsSharingView`'s sheet. |
| - **Contents**, one for one with the web's panel and its `docs.share.panel.*` words: |
| @@ -104,8 +158,8 @@ Paul, 2026-11-21: "Can we have the Desktop and mobile apps reflect the web apps |
| - **Invite row:** one rounded field holding the email field ("Add people by email"), a Can read / Can edit menu and Invite. |
| - **People with access:** the owner first ("(you)", Owner), then each grant with an initial avatar, its access and an × labelled `docs.share.panel.remove` ("Stop sharing with {address}"). |
| - **General access:** |
| - - **Your team:** a switch (`team_switch`, with the one-line `team_on` / `team_off` state). It posts `/d/{sqid}/share/team`, which already answers native JSON. |
| - - **Anyone with the link:** a switch (`link_switch`, with the `link_on` / `link_off` state). |
| + - **Your team:** a switch (`team_switch`, with the `team_on` / `team_off` line). It posts `/d/{sqid}/share/team`, which already answers native JSON. |
| + - **Anyone with the link:** a switch (`link_switch`, with the `link_on` / `link_off` line). |
| - Just published: the once-only URL, Copy link and `docs.share.panel.once`. |
| - Later: `docs.share.panel.shown` and Make a new link. |
| - **Behaviour:** |
| @@ -115,76 +169,103 @@ Paul, 2026-11-21: "Can we have the Desktop and mobile apps reflect the web apps |
| - Share… while the popover is open does nothing. |
| - Esc and Close dismiss it and return focus to Share…. |
| - On open, focus goes to the email field. |
| +- **The once-only URL (Low 14):** |
| + - While it is showing, the popover is not transient. An outside click does not close it (`NSPopover.Behavior.applicationDefined`); only Close and Esc do. On iPhone, the sheet sets `.interactiveDismissDisabled(true)`. |
| + - The URL exists only in the panel's memory for that lifetime. It is never logged or persisted, and it reaches the pasteboard only through Copy link. |
| - **When it is available:** |
| - Share… flushes first (as today). |
| - - It is disabled while the origin is offline or the document is a draft. The reason is in its help tag. |
| -- **The once-only URL** exists only in this panel's memory for the popover's lifetime. It is never logged, persisted or put in a pasteboard history except by Copy link. |
| + - It is disabled while the origin is offline or the document is a draft. The help tag says why (`native.share.offline`). |
| ### Reader mode (`can_write == false`) |
| - **Header:** the title and "<Team> · View only" with an eye glyph. No undo/redo, no Format, no Share…. |
| - **Text:** the text view is selectable and not editable. |
| -- **Menus:** the Format menu is disabled. Rename and Delete… are absent. |
| -- **Losing write access mid-session:** if write access is lost while the window is open (`refreshAccess` → `can_write == false`), the window becomes a reader window in place. Caret, scroll and selection are kept. Pending entries follow today's outbox rules unchanged. |
| +- **Menus:** the Format menu and Show/Hide Format are disabled. Rename and Delete… are absent. |
| +- **Losing access mid-session:** see §6's "Write access ends" and "No longer available" rows. |
| + |
| +### Delete… (S2b) |
| + |
| +- **Who:** owners only (`can_share`). A draft has no Delete…; closing an empty draft discards it, as today. |
| +- **Confirmation:** the web's words (`docs.delete.heading` / `.body` / `.confirm` / `.cancel`). |
| +- **Refused with unsent changes** (`native.delete.unsent`). |
| +- **Server:** `deletePost` gains the native JSON answer its own comment asks for (`delete.go:89-92`, "No native answer"). It returns `{"ok":true}` after `Store.Delete` commits, with no re-read. The HTML redirect is unchanged for browsers. |
| +- **Client rule, which also covers version skew:** |
| + - Older or lagged servers 303 to the list after the delete has committed. The client POSTs with `Accept: application/json`. |
| + - On a 2xx JSON `ok`, the document is deleted. |
| + - On any non-JSON or redirected answer, the client GETs `/d/{sqid}` as JSON: 404 means deleted, 200 means failed (callout, nothing removed), anything else means failed and retryable. |
| + - A retry after a lost answer gets 404 from the POST's lookup. That is also treated as deleted. |
| +- **After a delete:** |
| + - drop the document's outbox lane and replica cache; |
| + - close its Mac window, or pop to the library on iPhone and on iPad; |
| + - remove it from the home list, File ▸ Recent and the thumbnail cache; |
| + - reload the list. |
| +- **Deploy order:** the server change deploys to every instance with native users (prod and lagged) before the client that uses it is released. Because of the client rule above, an undeployed server is still safe. |
| +- **Tests (Go):** |
| + - the owner gets JSON `ok`; |
| + - a writer grantee, a reader, a guest and a team non-owner get 404 with nothing deleted; |
| + - an already-deleted document gets 404; |
| + - a lookup failure gets JSON with the failure status shape (`ownerLookupFailureOrStatus` with native accept); |
| + - the browser's 303 is unchanged; |
| + - the suite feed announces the deletion (`softDelete`). |
| +- **Tests (Swift):** the client rule against a stub answering JSON, 303-to-HTML then 404, 303-to-HTML then 200, and 404 on the POST. |
| ### Menus and shortcuts (Mac) |
| -The menu bar is the web's six menus mapped onto the Mac's. Labels are the web's keys where one exists. |
| +The menu bar maps the web's six menus onto the Mac's. Labels are the web's keys where one exists. |
| | Menu | Items | |
| |---|---| |
| | File | New document ⌘N · Open a document… ⌘K · Recent ▸ · Rename ⇧⌘R · Save ⌘S · Export ▸ PDF…, Markdown… · Share… · Print… ⌘P · Delete… (owner only) | |
| | Edit | System items · Undo ⌘Z · Redo ⇧⌘Z (the responder's) | |
| -| View | Show/Hide Format ⌥⌘I · Pages (toggle) · Zoom ▸ 50–200% · Actual size ⌘0 | |
| -| Format | Today's menu, unchanged: Bold ⌘B, Italic ⌘I, Inline code, Paragraph style ▸, Font ▸, Size ▸, Alignment ▸, Indent, Outdent, Clear formatting | |
| -| Tools (new) | Word count… · Keyboard shortcuts… (both from `DocsToolsControls`, moved out of the inspector column) | |
| -| Help | Colophon | |
| +| View | Show/Hide Format ⌥⌘I · Paged / Infinite (a pair, the web's `docs.editor.menu.view.paged` / `.infinite`) · Zoom ▸ 50–200% and Actual size ⌘0 (native-only) | |
| +| Format | Bold ⌘B, Italic ⌘I, Code · Style ▸ Body text, Heading 1–3 · Bulleted list, Numbered list, Quote · Font ▸ · Size ▸ · Align left/center/right · Increase indent, Decrease indent · Clear formatting. The labels are the inspector's web keys (`docs.editor.toolbar.*`, `docs.editor.menu.format.*`), replacing "Normal", "Bullet list", "Block quote", "Inline code" and Headings 4–6. H4–6 content still renders and edits. | |
| +| Tools | Word count… | |
| +| Help | Keyboard shortcuts… · Colophon | |
| -- The web has no Format shortcut. ⌥⌘I is the Mac's inspector convention (Pages, Keynote) and is free in Docs. |
| -- **Delete…** (owner, `can_share`) confirms with the web's words (`docs.delete.heading` / `.body` / `.confirm` / `.cancel`). |
| - - It is refused while this document has unsent changes. |
| - - On success it closes the window and drops the document's outbox lane and replica. |
| - - The server half: `deletePost` gains the native JSON answer its own comment asks for (`delete.go:89-92`, the "No native answer" comment), returning `{"ok":true}` after `Store.Delete` with no re-read. It comes with a Go test and the client. |
| +- **Open a document… ⌘K** opens the jump palette (`DocsJumpSheet`) as a sheet over the focused window, or over the home window when no document is focused. Choosing a result opens or focuses that document's window. (Today ⌘K brings the home window forward.) |
| +- **⌥⌘I.** The web has no Format shortcut. ⌥⌘I is the Mac's inspector convention (Pages, Keynote) and is free in Docs. |
| ## 2. Mac home window (ruling 2) |
| - **Toolbar:** |
| - Window title "Documents" (`docs.list.title`). |
| - - A search field in the toolbar (`.searchable`, prompt `docs.list.search.placeholder`, accessibility label `docs.list.search.label`). |
| + - A search field (`.searchable`, prompt `docs.list.search.placeholder`, label `docs.list.search.label`). |
| - A filled accent + (New document, `docs.list.create.label`, ⌘N; shown when `can_create`). |
| - A divider, then the account avatar (D4). |
| -- **Avatar:** a 28pt circle with the identity label's initial on accent-soft (`docs.chrome.account`, "{address}" replaced). Its menu: |
| - - Teams (`native.oficinaid.teams`), Use another Oficina ID, Other ways to sign in…, then Sign out of <label>. |
| +- **Avatar:** a 28pt circle with the identity label's initial on accent-soft (`docs.chrome.account`, with "{address}" replaced). Its menu: |
| + - Teams, Use another Oficina ID, Other ways to sign in…, then Sign out of <label>. |
| - Each keeps today's guards: disabled with the reason while documents are open or changes are unsent. |
| - A server-address account shows Accounts… and Sign out, as now. |
| - **Content:** on the desk colour, with a column at most 1,200pt wide, centred. |
| - - **Shelf:** the newest five documents (the web's `recentShelf`) as page previews, 170×220pt (`DocumentThumbnail`). |
| + - **Shelf:** the newest five documents (the web's `recentShelf`) as page previews, 170×220pt. |
| - Each shows the title (2 lines), the time or date, and the shared glyph. |
| - One row. When it does not fit, it scrolls horizontally. |
| - - Labelled "Recent" visibly, as drawn, and to VoiceOver. |
| - - **Rows:** everything older, in a rounded card, grouped like the web's: Today, Yesterday, This week, Earlier (`docs.list.group.*`). |
| - - The groups are computed in the device's calendar and time zone. The web uses UTC days; native is localised from day one. |
| + - Labelled "Recent", visibly as drawn and to VoiceOver. |
| + - **Rows:** everything older, in a rounded card, grouped like the web's: Today, Yesterday, This week, Earlier. |
| + - The groups use the device's calendar and time zone. |
| - Each row has a thumbnail, the title, a one-line excerpt and the date, trailing. |
| - - The excerpt is already in the list JSON (`thumbnail.Excerpt`, `preview.go`). `DocumentThumbnailData` only needs to decode it, so no server change is needed. |
| - - **Searching:** ranked rows only, no shelf and no groups (the web's rule). No results shows `docs.list.search.none.*`. |
| + - The excerpt is already in the list JSON (`thumbnail.Excerpt`). `DocumentThumbnailData` decodes it, so no server change is needed. |
| + - **Searching:** ranked rows only, no shelf and no groups. No results shows `docs.list.search.none.*`. |
| - **Empty:** `docs.list.empty.*` with New document. |
| - **List failure:** a callout with Try again. |
| -- **Removed:** the `NavigationSplitView` sidebar holding one "Recent" row, and the "Recent documents" large title. |
| -- **Unchanged:** opening a document opens or focuses its window (`DocsWindows`). File ▸ Recent and Window ▸ Home stay. |
| +- **Removed:** the sidebar holding one "Recent" row, and the "Recent documents" large title. |
| +- **Unchanged:** opening a document opens or focuses its window. File ▸ Recent and Window ▸ Home stay. |
| ## 3. iPhone document (rulings 3 and 4) |
| -### Header |
| +### Header and scrolling |
| -- **Navigation bar** (iOS 26 glass): |
| +- **Navigation bar:** |
| - Back (to the library). |
| - - Trailing: the undo/redo pill, Aa (Format, `docs.editor.inspector.toggle`) and ••• (`native.more`). |
| + - Trailing: the undo/redo pill, Aa (Format) and ••• (`native.more`). |
| - Readers get back and ••• only. |
| -- **Large title area under the bar:** |
| - - The title, bold, wrapping to at most three lines. |
| - - The subtitle under it (§States). |
| - - No Share pill (ruling 4). |
| -- **Title collapse:** the title folds into the bar as a two-line inline title (title truncated, subtitle under it) in three cases: |
| +- **Large title area:** the title, bold, at most three lines, with the subtitle (§6) under it. There is no Share pill (ruling 4). |
| +- **How it scrolls with the text:** |
| + - The large title is a SwiftUI header hosted inside the `UITextView`'s own scroll view: a `UIHostingController` view added as a subview above the text. The text view's top `textContainerInset` equals the header's measured height. |
| + - So the title scrolls with the text and there is no outer scroll view. |
| + - The header's content comes from a small `DocumentHeaderState` object: title, subtitle, collapsed. It is separate from the text view's host, so updating it never re-evaluates that host. |
| + - The coordinator's `scrollViewDidScroll` sets `collapsed` when the offset passes the header's height. The header's height changes go back as an inset update on the coordinator, not through SwiftUI state on the host. |
| +- **Collapse:** the title folds into the bar as a two-line inline title (title truncated, subtitle under it): |
| - when the text scrolls past the large title; |
| - when the keyboard appears; |
| - when the Format sheet opens. |
| @@ -196,36 +277,42 @@ The menu bar is the web's six menus mapped onto the Mac's. Labels are the web's |
| The web's File, View, Tools and Help, in this order. Items a capability forbids are absent, not disabled. |
| -1. Share… (`can_share`; opens the share sheet) · Rename (`can_write`) |
| -2. Export ▸ PDF…, Markdown…, Print… · Word count… · Open a document… · Pages (checkmark toggle) |
| -3. Help ▸ Keyboard shortcuts…, Colophon · Delete… (owner; destructive; same confirmation and rules as the Mac's) |
| +1. Share… (`can_share`) · Rename (`can_write`) |
| +2. Export ▸ PDF…, Markdown…, Print… · Word count… · Open a document… · Paged / Infinite (a checkmarked pair) |
| +3. Help ▸ Keyboard shortcuts…, Colophon · Delete… (owner, destructive, S2b's rules) |
| -Share… flushes first and is disabled offline or for a draft, as on the Mac. |
| +There is no zoom on iPhone. The page fits the width, as it does today. |
| ### Format sheet (ruling 3) |
| -- **Opening:** Aa, or Aa in the keyboard bar, opens a sheet at the `.medium` detent only, with `.presentationBackgroundInteraction(.enabled(upThrough: .medium))`. |
| - - The text stays interactive above the sheet. |
| - - The selection scrolls into view above it: the text view's bottom content inset follows the sheet's height. |
| - - Opening it dismisses the keyboard and keeps the selection. Closing it gives the text view first responder back if it had it. |
| +- **Opening:** Aa, or Aa in the keyboard bar, opens a sheet at the `.medium` detent only, with `.presentationBackgroundInteraction(.enabled(upThrough: .medium))`, so the text stays interactive above it. |
| +- **The selection stays visible.** |
| + - Opening the sheet does not resign first responder. The text view's `inputView` is set to an empty, zero-height view and `reloadInputViews()` is called. The keyboard goes, and the selection highlight and caret stay. |
| + - Closing the sheet restores `inputView = nil` and reloads, so the keyboard returns only if it was up before. |
| + - The text view's bottom content inset follows the sheet's height, and the selection is scrolled into view above it. |
| +- **Typing marks:** a mark chosen with a collapsed caret (for example Bold) is kept as today's `typingMarks` until the caret moves or text is typed, and the sheet's Bold shows it as selected. Closing the sheet does not clear it. |
| - **Contents** (the web inspector's sections, in one screen at default Dynamic Type): |
| - **Head:** "Format" (`docs.editor.inspector.label`) and a close button (`native.close`). |
| - - **Style:** Body text, Heading 1, Heading 2 and Heading 3 as chips, each drawn in its own face. The current one has an accent outline and `.isSelected`. They scroll horizontally when they do not fit. |
| + - **Style:** Body text and Heading 1–3 as chips, each in its own face. The current one has an accent outline and `.isSelected`. They scroll horizontally when they do not fit. |
| - **Font and size:** the font picker (`DocsFontPickerButton`, families in their own faces), then a size stepper (− value +) over the eleven sizes. |
| - - **Marks and alignment:** Bold, Italic and Code, then left, centre and right (two segmented groups on one row; two rows from AX1). |
| + - **Marks and alignment:** Bold, Italic and Code, then left, centre and right (one row; two rows from AX1). |
| - **Lists and indent:** bulleted, numbered and quote, then decrease indent, increase indent and clear formatting (one row; two rows from AX1). |
| - **Applying:** every control applies to the current selection, and the sheet stays up. |
| ### Keyboard bar |
| -- **When:** while the keyboard is up and the document is writable, a capsule rides on the keyboard (`ToolbarItemGroup(placement: .keyboard)`). |
| +- **Mechanism:** the `UITextView`'s `inputAccessoryView`, a `UIInputView` hosting a SwiftUI capsule. Not `ToolbarItemGroup(placement: .keyboard)`, which does not attach reliably to a wrapped `UITextView`. |
| +- **When:** writers only. A reader's text view has no accessory. |
| - **Items:** Aa (opens the sheet), Bold, Italic, Bulleted list, Numbered list, Quote, a divider, then Hide keyboard (`native.keyboard.hide`). |
| - Marks and lists show `.isSelected` from `DocumentToolbarSelection`. |
| - Targets are at least 44pt. At AX sizes the capsule scrolls horizontally rather than shrinking. |
| +- **Hardware keyboard:** the system shows the accessory at the bottom of the screen; that is accepted. ⌘B and ⌘I work through the text view's key commands. |
| -### Share sheet |
| +### Share sheet (S2b) |
| -The same panel as the Mac's popover (§1), as a sheet with `.medium` and `.large` detents. Focus goes to the email field when VoiceOver is off; with VoiceOver on, it goes to the head. |
| +The same panel as the Mac's popover, as a sheet with `.medium` and `.large` detents. |
| +- Focus goes to the email field when VoiceOver is off; with VoiceOver on, it goes to the head. |
| +- Not dismissible by swipe while the once-only URL shows. |
| ### Reader (iPhone) |
| @@ -233,6 +320,7 @@ Back and ••• only, and "<Team> · View only" with the eye glyph. No keyboa |
| ### Removed on iPhone |
| +These go on the iPhone only. iPad keeps them until S5. |
| - The `NavigationSplitView` (library | editor). The library is a `NavigationStack` root and the document is pushed. |
| - The horizontal formatting strip. |
| - The toolbar's Paged toggle, export control, Tools menu and Share button. They move to •••. |
| @@ -240,57 +328,64 @@ Back and ••• only, and "<Team> · View only" with the eye glyph. No keyboa |
| ## 4. iPhone library (ruling 5) |
| -- **Bars:** |
| - - A large title, "Documents". |
| - - The account avatar trailing, with the Mac avatar's menu plus Colophon (the iPhone has no Help menu). |
| -- **Bottom toolbar:** the search field (`DefaultToolbarItem(kind: .search, placement: .bottomBar)`, prompt `docs.list.search.placeholder`) and a filled compose button (New document, `square.and.pencil`; shown when `can_create`). |
| -- **Content:** the same model as the Mac home. |
| +- **Bars:** a large title, "Documents", and the account avatar trailing, with the Mac avatar's menu plus Colophon. |
| +- **Bottom toolbar:** the search field (`DefaultToolbarItem(kind: .search, placement: .bottomBar)`, prompt `docs.list.search.placeholder`) and a filled compose button (New document, `square.and.pencil`; when `can_create`). |
| +- **Content:** the same `LibraryModel` as the Mac home. |
| - A horizontally scrolling shelf of the newest five. |
| - Then grouped rows: thumbnail, title, date, two-line excerpt, shared glyph. |
| - Searching shows ranked rows. Empty, no-results and failure states are as on the Mac. |
| - Pull to refresh reloads the list. |
| -- **New document:** the existing `beginDocument()` path (save, discard, then `newDraft`), pushed. |
| +- **New document:** the existing `beginDocument()` path, pushed. |
| -## 5. iPad (D6) |
| +## 5. iPad (D6; S5) |
| +- **Gate:** until S5, `UIDevice.current.userInterfaceIdiom == .pad` keeps today's views (the `NavigationSplitView`, the strip, the toolbar items). S1's rendering changes apply to iPad too; the gate only chooses the chrome. S5 removes the gate. |
| - **Compact width** (Slide Over, narrow split): exactly the iPhone layout. |
| - **Regular width:** |
| - **Library:** the Mac home's content. "Documents", search, + and the avatar are in the navigation bar. A document is pushed full screen, with no sidebar. |
| - **Document:** |
| - - The Mac's header in the navigation bar: back, the title and subtitle at the leading edge, then undo/redo, Format, Share… and •••. |
| - - The ••• menu is the iPhone's, for touch. |
| - - The floating inspector and the page-centring rule are the Mac's. |
| + - The Mac's header contract in the navigation bar: back, the title area at the leading edge, then undo/redo, Format, Share… and ••• (the iPhone's menu, for touch). |
| + - The floating inspector and the page-centring rule are the Mac's, in the text view's points; the iPad text view has no magnification. |
| - Share is a popover. |
| - - **Menus:** the iPadOS 26 menu bar carries the Mac's menus and shortcuts (`.commands`), so a hardware keyboard has ⌘B, ⌥⌘I, ⌘K and the rest. |
| -- **Changing size class** keeps the same text view, selection, scroll position and undo stack (render isolation, §7, makes this cheap). |
| + - **Menus:** the iPadOS 26 menu bar carries the Mac's menus and shortcuts (`.commands`). |
| +- **Changing size class** keeps the same text view, selection, scroll position and undo stack. |
| - The inspector closes at compact width without changing the remembered state, and never turns into the sheet by itself. |
| - An open Format sheet closes at regular width, and the inspector shows if the remembered state says open. |
| -- **Until the iPad slice lands,** iPad shows the iPhone layout at every width. That is a valid intermediate state. |
| +- **Pagination (Low 16):** iPad keeps iOS's geometric pagination, where lines may split across pages, not the Mac's whole-block plan. `PARITY.md` records it. |
| +- **Multi-window and state restoration** are unchanged from today. S5 records in `PARITY.md` what iPad does: which scenes it supports, and what a relaunch restores. |
| ## 6. States |
| ### Subtitle |
| The subtitle is `<Team> · <state>`. |
| -- **Team:** the Oficina ID team's name (`OficinaTeam.name`). For a server-address account, the account name Settings shows. With no name, the state alone, with no separator. |
| +- **Team:** D7. For an Oficina ID, the team's name (`OficinaTeam.name`). For a server-address account, the account name Settings shows. With no name, the state alone, with no separator. |
| - **Joining:** a format key, `native.subtitle.joined` ("%1$@ · %2$@"), so right-to-left languages can order it. It is looked up as a String key and formatted with `String(format:)`, never interpolated into a key. |
| -- **Precedence:** the first match wins. It is `SyncStatus`'s own priority, with capability inserted. |
| - |
| -| Condition | Subtitle | Style | Announced | Extra | |
| -|---|---|---|---|---| |
| -| `failed(held)` | "Some changes could not be saved." (`sync.failed.held`) | negative, semibold | yes | Banner: today's `errorKey` text, Try again, and Discard changes (when unsent) | |
| -| `failed(cannotSaveOnDevice)` | "Can’t save on this device." | negative | yes | Input paused (unchanged) | |
| -| `failed(tooManyUnsent)` | "Too many unsent changes…" | negative | yes | Input paused (unchanged) | |
| -| `needsSignIn(n)` | "Sign in to send n pending" | negative | yes | Banner with Sign in (opens the account flow, as Settings' Sign in… does) | |
| -| `offline(n)` | "Offline · n pending" | muted | yes | `NativeOfflineBanner` (durable wording) under the header, unchanged | |
| -| `retrying(n)` | "Trouble saving · Retrying…" | muted | no | none | |
| -| `saving`, unsaved for ≥ 1 s | "Saving…" | muted | no | Shorter saves stay "Saved", so the subtitle never flickers while typing | |
| -| `can_write == false` | "View only", with an eye glyph | muted | no | Reader chrome | |
| -| `saved` | "Saved" (`native.subtitle.saved`) | muted | no | none | |
| -| Loading | the team only | muted | no | A spinner on the page | |
| - |
| -- **Kit rules kept:** announcements follow the kit's rule. Entering offline, needs-sign-in or failed is announced. A count change inside the same kind is not. Saving is never announced. |
| -- **Element structure:** the subtitle is one accessibility element with `.updatesFrequently`, present even when quiet. The kit's `NativeSyncStatusView` keeps its announcement logic. The subtitle reuses `NativeSyncStrings.text(for:)` and the same `sameKind` check, so no wording forks from the kit. |
| +- **Precedence:** top to bottom, the first row that applies wins. |
| + |
| +| # | Condition | Subtitle | Style | Announced | Extra | |
| +|---|---|---|---|---|---| |
| +| 1 | No longer available: `refreshAccess` got 403 or 404, or a stream or write was refused and the re-GET says 404 | "No longer available" (`native.subtitle.unavailable`) | negative | yes | The editor becomes read-only. Banner `native.unavailable.body` ("This document was deleted or is no longer shared with you.") with Close (Mac) or Back (iPhone), and Discard changes when unsent. Held entries stay held; nothing is sent. Covers a document deleted on another device. | |
| +| 2 | `failed(held)` | "Some changes could not be saved." (`sync.failed.held`) | negative, semibold | yes | Banner: today's `errorKey` text, Try again, and Discard changes when unsent | |
| +| 3 | `failed(cannotSaveOnDevice)` | "Can’t save on this device." | negative | yes | Input paused (unchanged) | |
| +| 4 | `failed(tooManyUnsent)` | "Too many unsent changes…" | negative | yes | Input paused (unchanged) | |
| +| 5 | `needsSignIn(n)`, n > 0 | "Sign in to send n pending" | negative | yes | Banner with Sign in (the account flow, as Settings' Sign in… opens it) | |
| +| 6 | `needsSignIn(0)` | "Signed out" (`native.subtitle.signedOut`) | negative | yes | The same banner. Input paused until sign-in. | |
| +| 7 | `offline(n)` | "Offline · n pending" | muted | yes | `NativeOfflineBanner` (durable wording) under the header, unchanged | |
| +| 8 | `retrying(n)` | "Trouble saving · Retrying…" | muted | no | none | |
| +| 9 | Not `.saved` continuously for ≥ 1 s (`.saving`, or a draft being created) | "Saving…" | muted | no | none | |
| +| 10 | Write access ends (`can_write` becomes false on a 200 re-GET), or was never there | "View only", with an eye glyph | muted | no (yes when it changes mid-session) | Reader chrome, applied in place. Caret, scroll and selection are kept. Pending entries follow today's outbox rules. | |
| +| 11 | `saved` | "Saved" (`native.subtitle.saved`) | muted | no | none | |
| +| 12 | `saved`, origin offline | "Saved" | muted | no | `NativeOfflineBanner`: the banner is driven by connectivity, not by status, so "Saved" plus the banner is a real, correct state | |
| +| 13 | Loading (no projection yet) | the team only | muted | no | A spinner on the page | |
| + |
| +**Notes on the table:** |
| +- **401** keeps today's path: the session machinery re-mints, and an ended session surfaces as rows 5 and 6. Only 403 and 404 become row 1. Today `refreshAccess` maps all three to `can_write = false`; S2a changes 403 and 404 to "no longer available", with a test for each status. |
| +- **Opened from the device's copy** while offline: the detail and capability are the cached ones and the status is the outbox's. So the rows above apply unchanged (typically 12, or 7 with pending changes). There is no extra text: the banner already says offline. When the connection returns, `refreshAccess` may move the window to row 1 or row 10. |
| +- **A draft being created** is row 9 while creation is in flight. If creation fails, it is row 2 with `native.pending`, and row 7 while offline. |
| +- **Debounce (row 9):** the subtitle shows "Saving…" only after the status has been continuously not `.saved` for 1 s. The clock restarts on every return to `.saved`. It runs in a `.task(id: statusKind)` that sleeps 1 s and sets a `@State` flag, never in `body`. Rows 1–8 show at once. |
| +- **Announcements:** the kit's rule through the exported `SyncStatusAnnouncer`, plus rows 1 and 10's mid-session changes. Entering offline, needs-sign-in, failed or unavailable is announced. A count change inside the same kind is not. Saving is never announced. |
| +- **Element structure:** the subtitle is one accessibility element with `.updatesFrequently`, present even when quiet. In the spike fallback, the banners carry the styling instead (§1). |
| ### Banners and dialogs |
| @@ -302,95 +397,156 @@ All unchanged in behaviour; only the placement moves. |
| ### Other states |
| -- **Signed out, or the session ended:** document windows show `needsSignIn` as above. The home window and the iPhone root show the Oficina ID door as today. Straight-in, and the account menu's items and guards, are unchanged. |
| -- **Offline:** editing continues into the outbox, exactly as today. Share…, Delete… and Export are disabled with reasons. Open a document… searches only what is loaded. |
| -- **View-only:** see Reader. A team member reading a team document is the same state. |
| -- **Read-only team, or a grant ended mid-session:** handled as losing write access above. |
| +- **Signed out:** the home window and the iPhone root show the Oficina ID door as today. Straight-in, and the account menu's items and guards, are unchanged. |
| +- **Offline:** editing continues into the outbox, exactly as today. Share… and Delete… are disabled with reasons. Export, which needs the server, is disabled with `native.share.offline`'s sibling `native.export.offline`. Open a document… searches only what is loaded. |
| - **Document failed to open:** `ContentUnavailableView` with `docs.error.generic` and Try again. |
| ## 7. Rendering architecture (rides with this work) |
| ### Problem |
| -From the audit, re-measured on main after phase 2 before work starts: |
| +From the audit; S1 re-measures on main after phase 2 before any work starts: |
| - The Mac paged view copies and lays out the whole document twice per key (`DocsPagedTextView.updatePagination`; finding 3). |
| -- SwiftUI evaluates the editor body 4–11× per key. Each evaluation runs a full `NativeTextProjection.render`, as do `DocsToolsControls`, `DocsEditorContext.actions` and `EditorToolbar` (finding 4). The body depends on `syncStatus`, `selection`, `detail`, `editing` and the projection. |
| +- SwiftUI evaluates the editor body 4–11× per key. Each evaluation runs a full `NativeTextProjection.render`, as do `DocsToolsControls`, `DocsEditorContext.actions` and `EditorToolbar` (finding 4). |
| - iOS sets `attributedText` to the whole document per publication, and lays out everything in `layoutSubviews` (finding 10, and finding 3's iOS half). |
| -The engine already knows which top-level blocks changed (`CRDTProjectionDelta`). `CRDTReplica` applies the delta and then hands Swift a whole `CRDTProjection`, so the information is lost. |
| +The engine knows which top-level blocks a transaction changed (`project_delta`). But the delta is relative to `CRDTReplica.presented`, and three things break any assumption that the surface sees every delta: |
| +- `presented` advances on every projection call, including `replica.projection()` at open and elsewhere (`DocsModel.swift:301`). |
| +- `publishCurrent` drops a computed presentation when typing, composition, selection or the epoch moved (`DocsModel.swift:380`). |
| +- The text view defers a render while `canRender` is false or text is marked. |
| + |
| +So a delta cannot be forwarded as a patch. |
| ### Design |
| -1. **Publications carry the change.** |
| - - `CRDTReplica`'s presentation returns `(projection, change)`. `change` is the delta's `keep` / `remove` / `insert` ops by top-level index, or nil when no delta applies (open, a fresh source, recovery, a generation reset). |
| - - `DocsModel` forwards the pair to the document surface and does not store the projection in observed state (`@ObservationIgnored`). |
| -2. **`DocumentSurface`** is new, `@MainActor`, one per open document, and deliberately not `@Observable`. It owns: |
| +1. **Revisions and a dirty log in the replica** (finding 1). |
| + - `CRDTReplica` keeps `presentedRevision`, a counter incremented every time `presented` changes, for any caller. |
| + - With each delta it applies, it appends `(revision, touchedBlockIDs, structural)` to a bounded log (the last 512 revisions). `touchedBlockIDs` are the ids of the blocks inserted, and of those removed, by the delta's ops. `structural` is true when blocks were inserted or removed. |
| + - `dirtyBlocks(since: r) -> DirtySet?` returns the union of touched ids since revision `r`. It returns nil when `r` is older than the log, or when any revision since `r` came from a non-delta path (open, fresh source, recovery, a generation reset), which is recorded as an "unknown" entry. |
| +2. **Every publication carries `resultRevision`.** |
| + - `DocsModel` forwards `(projection, resultRevision)` to the surface only when it actually publishes. |
| + - A dropped publication sends nothing, and loses nothing: the next publication's revision covers it. |
| + - `DocsModel` stops holding the projection as observed state (`@ObservationIgnored`). |
| +3. **`DocumentSurface`** is new, `@MainActor`, one per open document, and deliberately not `@Observable`. It holds: |
| + - `appliedRevision`, the revision its storage reflects; |
| - the current projection; |
| - - a per-block rendered cache keyed by block id; |
| - - the block index (the UTF-16 length of each top-level block, with prefix offsets recomputed from the first changed index); |
| + - a per-block render cache keyed by block id; |
| + - the block index (the UTF-16 length of each top-level block, in order, with prefix offsets recomputed from the first changed position); |
| + - `pendingDirty`, a set of block ids; |
| - the pagination plan; |
| - a weak reference to the text view. |
| - It also exposes the live text storage as the content that `DocumentCommands`, word counts and `DocumentToolbarSelection` read. Nothing calls `NativeTextProjection.render` for the whole document except open, a nil `change`, an image or font arrival affecting every block, or a full relayout. |
| -3. **Per-block rendering:** |
| + It exposes the live text storage as the content that `DocumentCommands`, word counts and `DocumentToolbarSelection` read. |
| +4. **Applying a publication:** |
| + - The surface asks the replica for `dirtyBlocks(since: appliedRevision)`. |
| + - If the answer is a set, it is merged into `pendingDirty`. |
| + - If it is nil, the surface sets "full diff": it compares every block of the new projection with its cache by id and by structural equality (`CRDTNode` becomes `Equatable`) and marks the differing, new and missing ones. |
| + - Then, if the text view can render (`canRender`, no marked text), it flushes: |
| + - walk the new block order against the old with two pointers (unchanged ids stay; ids missing from the new order are removed; new ids are inserted); |
| + - render every block in `pendingDirty` or new; |
| + - reconcile each changed range into storage; |
| + - set `appliedRevision = resultRevision`; |
| + - clear `pendingDirty`. |
| + - If it cannot render, it keeps the merged set and the newest projection and does nothing else. The next allowed render (the text view's existing `didRender` / marked-text-commit hook calls `surface.flushIfDeferred()`) flushes it all at once. |
| + - A deferred flush never loses a block: it reads the dirty set since its own `appliedRevision`, not since the last publication. |
| +5. **Per-block rendering:** |
| - `NativeTextProjection.renderBlock(node, neighbours:)` renders one top-level block, including inline code and the list numbering inside it. |
| - - After replacing block i, spacing attributes are recomputed for blocks i−1, i and i+1 only, because `DocumentBlockSpacing` collapses margins between neighbours. |
| - - When an image source arrives, only the blocks containing it are re-rendered. |
| - - The Mac's `.docsTopBlock` attribute stays the block boundary. |
| -4. **Per-block reconciliation:** |
| - - For each changed block, `DocumentRenderReconciliation` runs against the storage's substring at that block's range, not the whole storage. It keeps the optimistic-text, marked-text and generation guards (`canRender`, `didRender`) exactly as today. |
| - - iOS uses the same reconciliation. `attributedText =` is set once, at open, and never again. |
| -5. **Render isolation:** |
| + - After a block changes, spacing attributes are recomputed for its neighbours only (`DocumentBlockSpacing` collapses margins between neighbours). |
| + - When an image arrives, only the blocks containing it are re-rendered. |
| + - A font registration arriving late marks every block that uses that family. |
| + - Whole-document `render` remains for open, the full-diff path's initial build, and the tests' oracle. |
| +6. **Per-block reconciliation:** |
| + - For each changed block, `DocumentRenderReconciliation` runs against the storage's substring at that block's range, not the whole storage. |
| + - It keeps the optimistic-text, marked-text and generation guards (`canRender`, `didRender`) exactly as today. |
| + - iOS uses the same reconciliation, and sets `attributedText` once, at open. |
| +7. **Render isolation:** |
| - The text view's representable is created once per document. Its `update…View` handles only identity-level inputs: editable, paged, zoom, and the surface reference. |
| - Projection changes flow model → surface → storage by direct call, never through SwiftUI state. |
| - The view that hosts the text view reads none of: `syncStatus`, `outboxSummary`, `selection`, `detail`, `editing`, `typingMarks`, `inputPaused`, `connectivity`, the projection. |
| - - Each of these is read only by the small view that shows it: the subtitle, the undo/redo pill, the inspector, the keyboard bar, the banners. |
| -6. **Selection and toolbar state:** |
| + - Each of these is read only by the small view that shows it: the title area, the undo/redo pill, the inspector, the keyboard bar, the banners, `DocumentHeaderState`. |
| + - Editability changes are pushed to the text view by the surface. |
| +8. **Selection and toolbar state:** |
| - The selection lives in the text view. The model learns it by callback, without an observed property. |
| - - `DocumentToolbarSelection` (marks, block, font, size, alignment, `canUndo`/`canRedo`) is computed from the live storage at the selection. It is published as one observed value, assigned only when it differs. |
| -7. **No redundant observed assignments:** every assignment to observed model state is guarded by inequality (`detail`, `pendingTitle`, `draftToken`, `errorKey`, `inputPaused`). This finishes finding 15. |
| - |
| -### Incremental pagination (Mac) |
| - |
| -- **What stays:** the plan is today's, the same 648pt top-level-block budget, 18pt separator, collapsed margins and oversized-first-block rule, so web parity holds. |
| -- **How it is kept:** |
| - - The surface keeps each top-level block's measured natural height. |
| - - On an edit inside block i, it re-measures block i from the live layout manager's line fragments for that block's glyph range only (`ensureLayout(forCharacterRange:)`). |
| - - If the height did not change, nothing else happens. |
| - - If it did, page breaks are recomputed arithmetically from block i's page onward. No layout and no copy. |
| - - A block taller than a page, or any change of width, zoom or Pages, takes the full measurement path. |
| -- **Removed:** the whole-storage copy (`measurementContent`), `isEqual` and the second `NSLayoutManager`. |
| -- **Coalescing:** |
| - - Re-measurement runs at most once per run-loop turn. |
| - - The caret's page is laid out synchronously, before AppKit draws the caret. |
| - - Pages off screen lay out lazily (`allowsNonContiguousLayout = true`). |
| - - `layout()` stops calling `ensureLayout(for:)` on the whole container. |
| -- **iPhone:** |
| - - `layoutSubviews` stops calling `ensureLayout(for: pages)`. |
| - - Layout is non-contiguous. The visible rect plus one screen is laid out on demand. |
| - - Content height comes from the layout manager's estimate, corrected as layout completes. |
| - |
| -### Targets |
| - |
| -All measured with the audit probes. Release build, the audit's documents (`fixtures/generate-large-doc.mjs`), median of three runs, and the machine noted. |
| + - `DocumentToolbarSelection` (marks, block, font, size, alignment, `canUndo`/`canRedo`) is computed from the live storage at the selection, and published as one observed value assigned only when it differs. |
| +9. **No redundant observed assignments:** every assignment to observed model state is guarded by inequality (`detail`, `pendingTitle`, `draftToken`, `errorKey`, `inputPaused`). This finishes finding 15. |
| + |
| +### Incremental pagination (Mac; finding 2) |
| + |
| +**Today:** |
| +- The plan is computed by `DocumentPageLayout.measure` over an unpaginated copy. It walks top-level blocks with absolute tops and `used.maxY`, and breaks before a block when `bottom − pageTop > 648`. |
| +- It records `starts[characterIndex] = top + added` (absolute) and the separators. |
| +- `DocsPageTextContainer.blockStarts` is keyed by character index, and setting it calls `textContainerChangedGeometry`, which invalidates all layout. |
| + |
| +**New: breaks keyed by block, offsets relative.** |
| + |
| +1. **Keys and offsets.** |
| + - The container's break table becomes `breaks: [BlockID: CGFloat]`. The value is the extra vertical offset that block's first line gets (the plan's `extra`: the collapsed margins plus the 18pt separator), not an absolute top. |
| + - `lineFragmentRect(…at characterIndex:)` asks the surface's block index whether `characterIndex` is the first character of a block with a break. If so, it returns `rect.origin.y = proposedRect.minY + extra`. |
| + - Because the offset is relative to where the line would otherwise go, a height change above a break does not change that break's value. Typing before a break does not re-key anything: keys are block ids, and the index maps ids to the current character offsets. |
| + - `docsFirstMargin` at index 0 is kept as today. |
| +2. **Natural geometry, reconstructed per block.** |
| + - The surface caches each block's unpaginated top and bottom: `topU(i)` and `bottomU(i)`, the first line fragment's `minY` and the last line's `used.maxY`. |
| + - From the live paginated layout they are `topU(i) = top_live(i) − X(i)` and `bottomU(i) = bottom_live(i) − X(i)`, where `X(i)` is the sum of `extra` over breaks at or before block i. |
| + - After an edit inside block i, only block i is re-measured, from the live layout manager's line fragments over its glyph range (`ensureLayout(forCharacterRange:)` on that range). Its height delta `Δ` shifts the cached `topU`/`bottomU` of every later block by `Δ`: integer arithmetic over an array, no layout. |
| +3. **Recomputing breaks.** |
| + - Today's algorithm runs unchanged over the cached natural coordinates. It starts at the page containing block i and continues until it reaches a block where the new break set and extras agree with the old ones. From there the rest is unchanged, because heights after i are unchanged. |
| + - A block taller than a page, or any change of width, paged mode, zoom or fonts, takes the full path: today's measurement, run once, refilling the cache. |
| +4. **Invalidation after a moved break.** |
| + - If the break set changed, the first block whose break was added, removed or changed is `j`. The surface calls `invalidateLayout(forCharacterRange: start(j)..<end)` and `invalidateDisplay` for the same range. |
| + - It never calls `textContainerChangedGeometry` for a break change. With `allowsNonContiguousLayout = true`, layout after `j` is redone lazily, as those pages are scrolled to. |
| + - If no break moved, nothing beyond block i's own lines is invalidated. |
| +5. **Frame height comes from the plan:** `bottomU(last) + X(last) + verticalMargin`, with the existing `documentHeight` rounding. It is not read from the last glyph, which may not be laid out. |
| +6. **Coalescing:** |
| + - Re-measurement runs at most once per run-loop turn (`DispatchQueue.main` coalesced, or `NSTextStorage` end-editing). |
| + - The caret's line is laid out synchronously before AppKit draws the caret. |
| + - `layout()` no longer calls `ensureLayout(for:)` on the whole container. |
| + - The whole-storage copy (`measurementContent`), `isEqual` and the second `NSLayoutManager` leave the production path. |
| +7. **Oracle.** Today's full measurement moves verbatim into the test target as `DocumentPageLayoutOracle`. The pagination property test (§11) compares the incremental plan with the oracle's, and the line-fragment origins of every line with a fresh full layout using the oracle's plan, within 0.5pt. |
| +8. **Known risk and its check.** Non-contiguous layout with a non-rectangular container whose rects depend on y is a TextKit 1 trouble spot. S1 adds an acceptance check: |
| + - open p200h; |
| + - jump to the end (⌘↓) before any full layout has run; |
| + - type there; |
| + - the caret-against-glyph check passes, and the page numbers there equal the oracle's. |
| + |
| +**iPhone:** |
| +- `layoutSubviews` stops calling `ensureLayout(for: pages)`. |
| +- Layout is non-contiguous. The visible rect plus one screen is laid out on demand. |
| +- Content height comes from the layout manager's estimate, corrected as layout completes. |
| +- iOS pagination stays geometric (no break table). |
| + |
| +### Measurement and targets (finding 6) |
| + |
| +- **Probes on main.** S1 brings `native/benchmarks/realtime/` (the ui-probe, `run-ui.py`, `run-e2e.py`, `RealtimeAudit*Tests`, `DocsAuditProbe`) onto main. |
| + - The counters compile under their own Swift compilation condition, `DOCS_PROBES`, set only by the probe builds. They are measured in the Release configuration with `DOCS_PROBES` on. Shipping builds never set it. |
| + - New counters: host-view body evaluations, block renders, whole-document renders, `attributedText` assignments, and layout invalidations by range length. |
| +- **Baseline first.** S1's first step records main's numbers after phase 2 (`c715478` or later), for every row below, in `native/benchmarks/README.md`. The timing targets below are then confirmed or adjusted, with the reason, in the S1 discussion before implementation continues. |
| +- **Engine time and main-thread time are reported separately.** Peer → visible is split into network plus engine (out of scope here) and main thread (in scope). Only the main-thread part is a target. |
| +- **Hard gates (deterministic; exact; a regression blocks the merge):** |
| + |
| +| Counter, after open | Per key (40 keys) | Per peer change | Per sync-status change | |
| +|---|---|---|---| |
| +| Whole-document renders | 0 | 0 | 0 | |
| +| Block renders | ≤ 3 (the block and two neighbours) | ≤ 3 per touched block | 0 | |
| +| Body evaluations of the text view's host | 0 | 0 | 0 | |
| +| iOS `attributedText` assignments | 0 | 0 | 0 | |
| +| Layout invalidated beyond the edited block, with no break moved | 0 characters | 0 characters | 0 | |
| + |
| +- **Timing targets (indicative until the baseline confirms them).** Each target holds when the median over three runs is within 20% of it. If it misses, re-run three more with the machine's load average under 4; it fails if the median of all six misses. p95 figures use 200 keys, not 40. |
| | Measure (probe) | p20 | p200h | |
| |---|---|---| |
| | Mac keyDown → return, paged (`run-ui.py`) | ≤ 5 ms median, ≤ 10 ms p95 | ≤ 8 ms median | |
| | Mac keyDown → return, pageless | ≤ 3 ms | ≤ 5 ms | |
| -| Whole-document renders per key, after open | 0 | 0 | |
| -| Block renders per key | ≤ 3 | ≤ 3 | |
| -| Body evaluations of the text view's host view, per key and per sync-status change | 0 | 0 | |
| | Main-queue stalls > 16.7 ms over 40 keys at 8 keys/s | 0 | ≤ 2 | |
| -| Peer change → visible, loopback (`run-ui.py`, `PEER=`) | ≤ 60 ms median | ≤ 300 ms median | |
| -| iPhone main-thread time per one-block publication (`RealtimeAuditIOSTests`, simulator) | ≤ 4 ms | ≤ 8 ms | |
| -| iPhone `attributedText` assignments after open | 0 | 0 | |
| +| Peer change: main-thread time from publication to drawn | ≤ 5 ms | ≤ 10 ms | |
| +| iPhone main-thread time per one-block publication (`RealtimeAuditIOSTests`) | ≤ 4 ms | ≤ 8 ms | |
| | Longest main-thread block on Pages toggle, width change or zoom | ≤ 150 ms | ≤ 250 ms | |
| +| Mac inspector toggle and live resize (main-thread per frame) | ≤ 4 ms | ≤ 4 ms | |
| -- **Probes on main:** the probes live on `perf/native-realtime-audit`. The first slice brings `native/benchmarks/realtime/` (the ui-probe, `run-ui.py`, `run-e2e.py`, `RealtimeAudit*Tests`) and the counters onto main. |
| - - They stay gated: off unless their environment variable is set, and compiled to nothing in a release build. |
| - - The counters gain two: host-view body evaluations, and block renders. |
| -- **Recording:** the before and after numbers are recorded in `native/benchmarks/README.md`. |
| +- **Caveats, stated beside the numbers in the README:** |
| + - The UI probe uses an in-memory store and skips the sealed outbox's disk writes. |
| + - iPhone figures come from the simulator on the Mac's CPU, not a phone. §11's device pass is the sanity check, not a measurement. |
| + - Machine, load and build are recorded with every run. |
| ## 8. Strings |
| @@ -398,104 +554,173 @@ All measured with the audit probes. Release build, the audit's documents (`fixtu |
| - **Reuse:** a web key is reused where one exists, with the web's English. The ones not yet in the native catalogs are added under their web names with all twelve translations: |
| - `docs.editor.toolbar.history` |
| - `docs.editor.toolbar.group.style` / `.text` / `.align` / `.lists` |
| + - `docs.editor.toolbar.code`, `.quote`, `.bulletlist`, `.orderedlist` (if missing) |
| - `docs.editor.inspector.label`, `docs.editor.inspector.toggle` |
| + - `docs.editor.menu.view.infinite`, `docs.editor.menu.file.open`, `docs.editor.menu.tools.shortcuts`, `docs.editor.menu.help`, `docs.help.colophon` |
| - `docs.share.action`, `docs.share.panel.*` (all) |
| - `docs.editor.menu.file.delete`, `docs.delete.heading` / `.body` / `.confirm` / `.cancel` |
| - - `docs.editor.menu.file.open`, `docs.editor.menu.tools.shortcuts`, `docs.editor.menu.help`, `docs.help.colophon` |
| - `docs.chrome.account` |
| -- **New native keys** (English shown): |
| +- **New native keys** (English shown; every one goes through copy review before its slice lands): |
| - `native.subtitle.saved` "Saved" |
| - `native.subtitle.viewOnly` "View only" |
| - `native.subtitle.joined` "%1$@ · %2$@" |
| + - `native.subtitle.unavailable` "No longer available" |
| + - `native.unavailable.body` "This document was deleted or is no longer shared with you." |
| + - `native.subtitle.signedOut` "Signed out" |
| - `native.more` "More" |
| - `native.keyboard.hide` "Hide keyboard" |
| - `native.format.show` "Show Format", `native.format.hide` "Hide Format" |
| - `native.list.recent` "Recent" (moved from `Mac.strings`, where it is an English key) |
| - `native.share.offline` "Connect to share this document." |
| + - `native.export.offline` "Connect to export this document." |
| - `native.delete.unsent` "Wait until your changes are saved, then delete." |
| - **Rules:** |
| - - Never interpolate a key. `check-native.sh` already refuses `\(…)` in key literals. Keys built from parts are built as a String first (`EditorToolbar.headingKey`). |
| + - Never interpolate a key. `check-native.sh` already refuses `\(…)` in key literals. Keys built from parts are built as a String first. |
| - Placeholders `{title}` and `{address}` are replaced in the looked-up value. |
| - - `Mac.strings` English keys left with no reader after the migration are deleted in the slice that orphans them. |
| + - `Mac.strings` English keys left with no reader after a slice are deleted in that slice. |
| - A test asserts that every key the new views use resolves in all twelve tables, and that no value is the key itself. |
| -## 9. Accessibility |
| +## 9. Accessibility, RTL and long languages |
| - **VoiceOver:** |
| - Every icon control has the web's name (Undo, Redo, Format, Bold, Italic, Code, Align left/center/right, Bulleted list, Numbered list, Quote, Increase/Decrease indent, Clear formatting, More, Hide keyboard). |
| - - Pressed and selected states use `.isSelected`, never colour alone. |
| + - Selected states use `.isSelected`, never colour alone. Format is a toggle (§1). |
| - The inspector and the sheet are containers named "Format", with the four named groups. |
| - The subtitle follows §6's announcement rule. |
| - The shelf is a list named "Recent". A row reads as title, date, excerpt and "Shared". |
| - **Dynamic Type (iPhone and iPad):** |
| - The title, subtitle, library rows, sheet and menus scale to AX5. |
| - - The sheet re-flows to two rows per section from AX1. |
| - - The keyboard bar scrolls instead of shrinking. |
| - - The page's text does not scale; zoom is the page's control. |
| -- **Keyboard (Mac and iPad):** the shortcuts in §1. |
| - - ⌥⌘I toggles Format. |
| + - The sheet re-flows to two rows per section from AX1, and the keyboard bar scrolls instead of shrinking. |
| + - The page's text does not scale. The Mac and iPad have Zoom (View menu); the iPhone page fits its width and has no zoom of its own. System Zoom remains available. |
| +- **Keyboard (Mac and iPad):** |
| + - The shortcuts in §1. |
| - Full Keyboard Access reaches every header and inspector control. |
| - Esc closes the popover and the sheet and returns focus. |
| - **Targets and motion:** |
| - Targets are at least 28pt on the Mac and at least 44pt on iPhone and iPad. |
| - Under Reduce Motion: no slide on the inspector, a fade on the title collapse. |
| - Reduce Transparency gives opaque glass. Increase Contrast keeps the inspector's rim and the pressed outlines visible. |
| +- **Right-to-left (ar is shipped):** |
| + - The window chrome mirrors: the title area at the leading edge, the controls at the trailing edge, the inspector at the trailing edge (the left in RTL), and the centring rule's leading and trailing padding swapped. |
| + - The paper does not mirror. The text's own paragraph direction comes from the document, as today. |
| + - Glyphs mirror where they mean direction: undo/redo arrows and indent/outdent (use `.flipsForRightToLeftLayoutDirection(true)` or the SF Symbols' built-in RTL variants). Alignment glyphs and the list glyphs do not mirror. |
| + - The keyboard bar's order and the shelf's scrolling direction mirror. |
| +- **Long languages:** the 248pt inspector, the header pills and the keyboard bar must not truncate a label in ru or ga. Pills grow, and inspector labels wrap to two lines. A snapshot per new screen in ar and ru proves both (§11). |
| ## 10. Hard rules (restated; each has a test that must stay green) |
| -1. **No observed state is mutated in a view's `init` or `body`** (the Docs 0.1.7/0.1.8 launch hang). All new views derive. State changes happen in actions, `.task`, `.onChange` and callbacks. `WorkspaceInitTests` and `SignedInLaunchTests` cover the new document and home bodies. |
| +1. **No observed state is mutated in a view's `init` or `body`** (the Docs 0.1.7/0.1.8 launch hang). All new views derive. State changes happen in actions, `.task`, `.onChange` and callbacks; the saving debounce is a `.task`. `WorkspaceInitTests` and `SignedInLaunchTests` cover the new document and home bodies. |
| 2. **Never FOUT.** `DocsFonts.register()` runs before the first scene, as now. The style chips, the style pop-up and the font menus draw bundled faces that are already registered. The snapshot gate registers first. |
| 3. **Offline and outbox behaviour is unchanged.** Every keystroke still reaches the sealed outbox first. Pacing, echo suppression, persistence and the K3 crash rules are untouched. `OfflineDurabilityTests`, `OfflineKillTests` and `test-offline-kill.py` stay green. |
| 4. **Oficina ID straight-in is unchanged.** The account items are Teams, Use another Oficina ID, Other ways and Sign out, with today's guards. `OficinaIDAdoptionTests` stay green. |
| 5. **Accessibility** as §9. |
| 6. **The snapshot gate is updated** (§11) and compared before every merge. |
| -7. **Window identity** (account, origin, document) and the close and quit guards stay as `2026-09-20-mac-document-windows.md` specifies. |
| +7. **Window identity** (account, origin, document) and the close and quit guards stay as `2026-09-20-mac-document-windows.md` specifies. The inspector state is app-wide, and document window restoration is unchanged from that spec. |
| ## 11. Test plan |
| +- **Editor snapshots, before S1 (S0; finding 3):** |
| + - Today the gate excludes the editor (`DocsSnapshots.swift:20`). S0 adds fixed-fixture editor screens drawn by today's renderer, on main, and records them: |
| + - Mac paged and pageless at 100% and 150%; |
| + - iPhone paged and pageless; |
| + - light and dark, iPhone at default and AX3. |
| + - The fixture is the mock-ups' Millbrook document, plus a list, quote, code, a heading at a page break and an image. It is laid out synchronously before capture: `ensureLayout` on the container, then a run-loop turn. |
| + - S1 must leave these baselines unchanged, pixel for pixel. That is S1's visual acceptance. |
| - **Unit (DocsKit):** |
| - - **Subtitle:** every `SyncStatus` × capability gives the §6 text, style and announcement, and the 1 s saving debounce holds. |
| + - **Subtitle:** every §6 row gives its text, style and announcement, including rows 1, 6, 9 (with the 1 s debounce restarting on `.saved`), 10 and 12. 401, 403 and 404 each go to their row. |
| - **Header capability:** reader, writer, owner and draft give the controls and menu items specified, on all three layouts. |
| - - **Inspector state:** open by default, app-wide, never shown to readers, and the reader case does not write the state. |
| - - **Page centring:** the formula at W = 1800, 1440, 1280 and 920pt, at zoom 1.0 and 1.5, open and closed. |
| - - **Share panel model:** a switch holds and reverts; the once-only URL appears once and is gone after close; Share while open is a no-op; a second submit is refused. |
| + - **Inspector state:** open by default, app-wide, never shown to readers, and a reader's window does not write it. |
| + - **Page centring:** `E` at the six widths and two zooms, open and closed, including the 1,108pt boundary. In RTL the paddings swap. |
| + - **Share panel model:** a switch holds and reverts; the once-only URL appears once, is gone after close, and blocks outside dismissal while it shows; Share while open is a no-op; a second submit is refused. |
| - **Library:** shelf of five, the four groups in a fixed time zone, searching ungrouped, `Excerpt` decoded, dates via the locale. |
| - - **Block render equivalence (property test):** random edit sequences over fixtures with nested lists, quotes, headings, inline code, images and alignment. After each publication, storage built per block equals a full `render` of the same projection, attribute for attribute. |
| - - **Pagination equivalence (property test):** after random edits, the incremental plan equals today's full-measurement plan. Includes an oversized block and edits before a separator. |
| + - **Replica dirty log:** revisions advance on every projection call; `dirtyBlocks(since:)` unions correctly; it returns nil past the log or across an unknown entry. |
| + - **Block render equivalence (property test, Low 17):** random edit sequences over fixtures with nested lists, quotes, headings, inline code, images and alignment. The edits include: |
| + - insert and remove at index 0; |
| + - split and merge across blocks; |
| + - multi-block paste; |
| + - undo and redo of each. |
| + |
| + After each publication, storage built per block equals a full `render` of the same projection, attribute for attribute. |
| + - **Delta safety through the real text view (finding 1):** a hosted `NativeDocumentTextView` (Mac `NSTextView`, iOS `UITextView` in the simulator) with optimistic typing, plus: |
| + - publications dropped by `publishCurrent`'s guards; |
| + - publications delayed past further projections; |
| + - extra `replica.projection()` calls; |
| + - marked text from a ja and a zh input (`setMarkedText`) while peer edits land in the same block and in another; |
| + - a forced log overflow. |
| + |
| + At quiescence, storage equals a full render of the replica's projection. |
| + - **Pagination equivalence (property test, finding 2):** after random edits, including edits before a break, an oversized block, and typing that moves a break forward and back: |
| + - the incremental plan equals `DocumentPageLayoutOracle`'s; |
| + - every line fragment's origin equals a fresh full layout's within 0.5pt; |
| + - the frame height equals the oracle's. |
| - **Render isolation:** host a document window, type 40 keys, flip the sync status 10 times and move the selection 20 times. The host body counter does not move, and whole-document renders stay at zero after open. |
| - **Strings:** every used key resolves in all twelve tables (§8). |
| - - **Delete:** the Go route answers native JSON once, with no re-read, and is owner-only (404 otherwise). The client drops the lane and closes. |
| + - **Delete:** the Go matrix and the Swift client rule in §1. |
| - **Hosted-window launch tests (`DocsWindowTests`):** |
| - Building the new document body and home body changes nothing they watch. |
| - ⌥⌘I flips the inspector in every open window and persists across relaunch. |
| - - Exactly one title, with no `.principal` item. |
| - - Share popover focus in and out. |
| - - The Format menu is disabled for a reader. |
| - - A reader window keeps its scroll and selection when access drops. |
| + - The window title equals the document title, with exactly one visible title and no `.principal` item. |
| + - The page and inspector frames match the centring rule at the six widths (finding 5). |
| + - Share popover focus in and out, and its non-transient mode. |
| + - Format and Show/Hide Format are disabled for a reader and in the home window. |
| + - A window moves to View only and to No longer available in place, keeping scroll and selection. |
| - **iOS (simulator, `review-ios.py` / XCUITest):** |
| - - The keyboard bar appears with the keyboard, and only for writers. |
| - - Aa opens the sheet at medium with the selection visible above it. |
| + - The keyboard bar appears with the keyboard, for writers only, and with a hardware keyboard connected (simulator "Connect Hardware Keyboard"). |
| + - Aa opens the sheet at medium with the selection highlight still visible above it. |
| - The title collapses on scroll and on typing. |
| - The ••• items match each capability. |
| + - VoiceOver check (Low 18): with the caret mid-paragraph, a peer edit to another block does not move the VoiceOver cursor or the caret. |
| - `performAccessibilityAudit()` passes on the library, document, sheet and share sheet at default and AX3. |
| -- **Snapshot gate (`snapshots.sh`):** add the screens below, light and dark, iPhone at default and AX3. |
| +- **Snapshot gate (`snapshots.sh`):** add, in light and dark, with iPhone at default and AX3, and every new screen also in ar and ru (default size): |
| - **Mac:** document with the inspector open and closed, reader, share popover, home, home empty, home with no results. |
| - **iPhone:** document, reader, format sheet, share sheet, library, library empty. |
| - - The document screens use a fixed fixture document laid out synchronously before capture, which removes the gate's "editor is not here" exclusion. |
| - - The baselines replace `library*`. |
| -- **Performance:** the §7 table, run before and after the first slice and again before each later slice merges. A regression past a target blocks the merge. |
| + |
| + Their baselines replace `library*`. If the snapshot kit (rastrillo/native `RastrilloSnapshots`) cannot set a locale per screen, adding that is a listed kit change in S0. |
| +- **Physical devices (Low 19):** before each slice's release, one pass on a physical Mac and a physical iPhone (and an iPad for S5), recorded in `native/REVIEW.md`: |
| + - open p20; |
| + - type; |
| + - a peer edit; |
| + - the Format sheet or inspector; |
| + - VoiceOver on the header. |
| +- **Performance:** §7's gates and targets, before S1, after S1, and before each later slice merges. |
| - **Existing gates:** `make ci` and `check-native.sh` (including the 200-page document), `test-document-window.py`, `test-home-loading.py`, `test-offline-kill.py`, `test-sync-latency.py`, and hub CI exit 0. |
| ## 12. Out of scope |
| - **Import…** (the web's Word and Google imports). Native has no import client. |
| - **Web changes.** The only server change is Delete…'s native JSON answer. |
| -- **Comments, history, find/replace and insert menus** stay out of scope, as in the web's disabled placeholders. |
| -- **Engine work beyond surfacing the delta.** Phase 2 has landed. |
| +- **Comments, history, find/replace and insert menus,** as on the web. |
| +- **Engine work beyond the revision and dirty log in `CRDTReplica`.** Peer-visible engine and network time is not targeted here. |
| +- **iPad multi-window and new state restoration.** |
| - **Release and TestFlight steps.** Each slice ships by the existing release process once approved. |
| ## 13. Open questions for Paul |
| -1. **Import on native.** The web's header has Import…. Should the Mac home and the iPhone library get it later (a new client for `/import`), or stay web-only? |
| -2. **The inspector's second Lists row** (indent, outdent, clear formatting) is native-only, as drawn. Should the web inspector gain it too, for parity? |
| -3. **Share… while offline** is disabled with "Connect to share this document." The alternative is to open the panel showing the last-loaded state, read-only. Keep disabled? |
| +1. **Import on native.** The web's header has Import…. Should the Mac home and the iPhone library get it later (a new client for `/import`), or stay web-only? Fable's default: later. |
| +2. **The inspector's second Lists row** (indent, outdent, clear formatting) is native-only, as drawn. Should the web inspector gain it too? Fable's default: later. |
| +3. **Share… while offline** is disabled with "Connect to share this document." The alternative is to open the panel showing the last-loaded state, read-only. Fable's default: disabled. |
| +4. **The subtitle's team on a private document** (D7). Keep the account's team as context, or add `visibility` to the detail answer and say "Private" instead? |
| + |
| +## Revision 2: changes from #157 (Claude Fable 5.2, CHANGES NEEDED) |
| + |
| +| # | Finding | Where answered | |
| +|---|---|---| |
| +| 1 | Delta forwarding is unsafe | §7 Design 1–4: replica revisions and a bounded dirty log; publications carry `resultRevision`; the surface's `pendingDirty` accumulates across deferred renders; a full diff when the log cannot answer; a real-text-view test with ja/zh marked text, dropped and delayed publications, and log overflow (§11) | |
| +| 2 | Pagination against today's container | §7 Incremental pagination: breaks keyed by block id with relative offsets; per-block natural geometry reconstructed from the live layout; invalidation from the first moved break, lazily; frame height from the plan; the old measurement as `DocumentPageLayoutOracle`, compared on plan, line origins and height; the p200h jump-to-end caret check | |
| +| 3 | S1's snapshot check was vacuous | §11 S0: editor snapshots recorded on main from today's renderer before S1; S1 must leave them unchanged | |
| +| 4 | `.navigationSubtitle` cannot carry §6 | §1 Header contract: a custom title area with the system title hidden but set, a spike at the start of S2a, a stated fallback; the kit's `SyncStatusAnnouncer` export listed as a rastrillo/native change | |
| +| 5 | Centring formula and threshold | §1 Page centring: the web's clamp with upper bound R, threshold `P + 16 + R` (1,108pt), coordinate spaces stated, page moved by translation (O(1)), a hosted-window frame test; "without moving the text" withdrawn | |
| +| 6 | Measurability | §7 Measurement: `DOCS_PROBES` condition measured in Release; baseline first; engine split from main thread; deterministic counters as hard gates; timing tolerance and re-run rule; caveats stated | |
| +| 7 | §6 gaps | §6 rows 1, 6, 9, 12; notes on 401, the cache-opened case, drafts and the debounce; D7 and §13 Q4 for the private-document team | |
| +| 8 | Delete… under-specified | §1 Delete…: client rule for version skew and lost answers; deploy order; the full Go and Swift matrices; refresh of list, Recent and thumbnails; pop to library; drafts have no Delete… | |
| +| 9 | iPhone feasibility | §3: `inputAccessoryView`; the hardware keyboard; an empty `inputView` keeps the selection; typing marks; the large title inside the text view's scroll view via `DocumentHeaderState`; the iPhone zoom claim removed (§9) | |
| +| 10 | RTL and long languages | §9 RTL and long languages; ar and ru snapshots per new screen (§11) | |
| +| 11 | Menus vs the web | §1 Menus: Keyboard shortcuts in Help; the Paged/Infinite pair; Zoom stated as native-only (D2); Format menu on the inspector's web keys; ⌘K's behaviour; Show/Hide Format disabled for readers and in home | |
| +| 12 | Slice safety | Coordinator's rulings: the iPad gate (§5) and the S2a/S2b split (plan) | |
| +| 13 | Toggle semantics | §1: Format is a toggle, nothing else | |
| +| 14 | Once-only URL in a transient popover | §1 Share: non-transient while the URL shows; no swipe dismissal on iPhone | |
| +| 15 | Copy review | Coordinator's ruling: every new English string through copy review before its slice lands (§8; plan acceptance) | |
| +| 16 | iPad pagination, multi-window, restoration | §5 notes; §10 rule 7; §12 | |
| +| 17 | Property-test coverage | §11 block render equivalence edit list | |
| +| 18 | VoiceOver and peer edits | §11 iOS | |
| +| 19 | Physical devices | §11 physical-device pass per platform before each release | |