spec: Docs images — drop, paste or insert a picture (rev 1)
Paul 2026-12-03: web first, Mac next; short spec then build. Builds on Mapa's images spec for formats, walker, serving and the upload module; says what is Docs' own: sealing under the content key, one document per image, the read view's grammar (ABI 8), exports, quota, native.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+446
−0
docs/superpowers/specs/2026-12-03-docs-images-design.md+446 −0
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.215755
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: 41.242053
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.164002
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.460414
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.559084
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.805975
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.730063
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.692299
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: 20.465818
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.358171
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.576843
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.736856
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.720164
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.824518
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: 0.949627
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.378856
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.454514
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.274312
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.204292
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: 1.995038
type: 'test'
...
1..20
# tests 20
# suites 0
# pass 20
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 326.284583
=== 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.802512
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.29344
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.929737
type: 'test'
...
1..3
# tests 3
# suites 0
# pass 3
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 56.887311
=== 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: 21.868697
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: 3.875707
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.076224
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: 2.929483
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.786625
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.122024
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: 2.498891
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: 4.570738
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.828687
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.15447
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.777289
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.507452
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.796698
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.540794
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.902338
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.733476
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.449104
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.14423
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.103101
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.203168
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.456872
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.229372
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.213565
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.556914
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: 5.836539
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.149312
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.352257
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: 3.619155
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.765924
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.734862
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.263274
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: 2.167546
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.828826
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.841108
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.387721
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.862527
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.674353
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.09276
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.402257
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.483765
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.133974
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: 3.07651
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: 4.477237
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.446574
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: 3.824614
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.603125
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: 1.989901
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.472147
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.252454
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.900813
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.95699
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.185539
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: 2134.403916
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: 4181.501809
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.397856
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.813225
type: 'test'
...
1..56
# tests 56
# suites 0
# pass 56
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 6672.89009
=== 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.311781
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.631557
type: 'test'
...
# Subtest: a later response still carries the cursor forward
ok 3 - a later response still carries the cursor forward
---
duration_ms: 0.315307
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.234083
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.35418
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.29325
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.296989
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.807382
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.88467
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.691493
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: 1.057897
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: 0.250559
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.147988
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.186993
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.218516
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.130948
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: 9.729789
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.397815
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.158761
type: 'test'
...
1..19
# tests 19
# suites 0
# pass 19
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 73.50475
=== 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: 2.45887
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.214777
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.772829
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.25322
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.251462
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.165928
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.350435
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.748921
type: 'test'
...
# Subtest: the command aligns every block a selection spans
ok 9 - the command aligns every block a selection spans
---
duration_ms: 0.92997
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.971822
type: 'test'
...
# Subtest: one transaction per click, not one per block
ok 11 - one transaction per click, not one per block
---
duration_ms: 0.797801
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.412351
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.470045
type: 'test'
...
1..13
# tests 13
# suites 0
# pass 13
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 145.619757
=== 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.33604
type: 'test'
...
# Subtest: an unmarked run is Carlito
ok 2 - an unmarked run is Carlito
---
duration_ms: 0.308064
type: 'test'
...
# Subtest: code is Liberation Mono
ok 3 - code is Liberation Mono
---
duration_ms: 0.1235
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.129984
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.285319
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.122024
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.273819
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.151816
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.695223
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.662331
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.760966
type: 'test'
...
1..11
# tests 11
# suites 0
# pass 11
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 64.933724
=== 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.126793
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.659102
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.875221
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: 1.920225
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.054998
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.822345
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.882724
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.261303
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: 0.978892
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.311177
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.209188
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.385583
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.401616
type: 'test'
...
1..13
# tests 13
# suites 0
# pass 13
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 4078.9749
=== 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.65746
type: 'test'
...
# Subtest: two blank lines stay two blank lines
ok 2 - two blank lines stay two blank lines
---
duration_ms: 0.330768
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.175829
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.197868
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.874141
type: 'test'
...
# Subtest: an ordinary paste is returned by identity
ok 6 - an ordinary paste is returned by identity
---
duration_ms: 0.29309
type: 'test'
...
# Subtest: paragraph attributes are carried onto the blank lines
ok 7 - paragraph attributes are carried onto the blank lines
---
duration_ms: 0.354211
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.192733
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.536994
type: 'test'
...
# Subtest: WebKit's copy marker is ignored
ok 10 - WebKit's copy marker is ignored
---
duration_ms: 0.663834
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.328588
type: 'test'
...
# Subtest: the slice keeps its open depths
ok 12 - the slice keeps its open depths
---
duration_ms: 0.140207
type: 'test'
...
1..12
# tests 12
# suites 0
# pass 12
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 76.428767
=== 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.030488
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.197229
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.956239
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.165094
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.187319
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.171188
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.184358
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.118313
type: 'test'
...
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 61.765353
=== 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.051419
type: 'test'
...
# Subtest: every other size maps to its own mark
ok 2 - every other size maps to its own mark
---
duration_ms: 0.247207
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.172273
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.145211
type: 'test'
...
# Subtest: no marks means the default size
ok 5 - no marks means the default size
---
duration_ms: 0.319063
type: 'test'
...
# Subtest: a mark reports its own size
ok 6 - a mark reports its own size
---
duration_ms: 0.137008
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.292912
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.144923
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.542931
type: 'test'
...
1..9
# tests 9
# suites 0
# pass 9
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 65.905001
=== 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.225442
type: 'test'
...
# Subtest: "* " and "+ " start one too
ok 2 - "* " and "+ " start one too
---
duration_ms: 1.025037
type: 'test'
...
# Subtest: "1. " starts a numbered list
ok 3 - "1. " starts a numbered list
---
duration_ms: 0.554893
type: 'test'
...
# Subtest: "> " starts a quote
ok 4 - "> " starts a quote
---
duration_ms: 0.931348
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: 0.993334
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.022252
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.446816
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.131417
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.904434
type: 'test'
...
1..9
# tests 9
# suites 0
# pass 9
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 87.740885
=== fixtures: counting words, including where there are no spaces
TAP version 13
# Subtest: nothing is nothing
ok 1 - nothing is nothing
---
duration_ms: 1.046596
type: 'test'
...
# Subtest: ordinary English
ok 2 - ordinary English
---
duration_ms: 0.278116
type: 'test'
...
# Subtest: punctuation is not a word
ok 3 - punctuation is not a word
---
duration_ms: 0.151145
type: 'test'
...
# Subtest: a language without spaces between words still counts
ok 4 - a language without spaces between words still counts
---
duration_ms: 13.39188
type: 'test'
...
# Subtest: the document count walks every block
ok 5 - the document count walks every block
---
duration_ms: 1.4951
type: 'test'
...
# Subtest: a paragraph boundary is a word boundary
ok 6 - a paragraph boundary is a word boundary
---
duration_ms: 0.384733
type: 'test'
...
# Subtest: characters are counted with and without spaces
ok 7 - characters are counted with and without spaces
---
duration_ms: 0.328965
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.317325
type: 'test'
...
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 109.358139
=== 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: 2.02507
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.181251
type: 'test'
...
# Subtest: an editor command follows what the command reports
ok 3 - an editor command follows what the command reports
---
duration_ms: 0.192046
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.291898
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.346852
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.31784
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.246149
type: 'test'
...
# Subtest: a menu command refocuses the document only where refocus says so
ok 8 - a menu command refocuses the document only where refocus says so
---
duration_ms: 0.573677
type: 'test'
...
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 64.28282
=== 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.128287
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.373233
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.267212
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.131556
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.939036
type: 'test'
...
# Subtest: the size steps walk the ladder one size at a time and stop at its ends
ok 6 - the size steps walk the ladder one size at a time and stop at its ends
---
duration_ms: 3.390489
type: 'test'
...
# Subtest: a control hands the caret back to the document only where refocus says so
ok 7 - a control hands the caret back to the document only where refocus says so
---
duration_ms: 1.80976
type: 'test'
...
# Subtest: a style chip is pressed for the style the selection is in
ok 8 - a style chip is pressed for the style the selection is in
---
duration_ms: 1.423446
type: 'test'
...
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 165.509943
=== 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.057721
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.206873
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.312003
type: 'test'
...
# Subtest: the arrow keys walk only the drawn controls
ok 4 - the arrow keys walk only the drawn controls
---
duration_ms: 0.231579
type: 'test'
...
1..4
# tests 4
# suites 0
# pass 4
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 61.342691
=== the editor bundle must match a fresh build
wrote internal/docs/static/editor.fe1db7ee4d4551b0.js (364033 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 foldhash v0.2.0
Downloaded indexmap v2.14.1
Downloaded async-lock v3.4.2
Downloaded memchr v2.8.3
Downloaded ahash v0.8.12
Downloaded unicode-ident v1.0.24
Downloaded hashbrown v0.14.5
Downloaded async-trait v0.1.92
Downloaded syn v3.0.4
Downloaded arc-swap v1.9.2
Downloaded wasmparser v0.258.0
Downloaded arrayvec v0.7.8
Downloaded hashbrown v0.17.1
Downloaded scopeguard v1.2.0
Downloaded wasmi_collections v0.32.3
Downloaded event-listener v5.4.2
Downloaded serde_derive v1.0.229
Downloaded version_check v0.9.5
Downloaded smallvec v1.15.2
Downloaded multi-stash v0.2.0
Downloaded indexmap-nostd v0.4.0
Downloaded thiserror-impl v2.0.20
Downloaded downcast-rs v1.2.1
Downloaded event-listener-strategy v0.5.4
Downloaded dashmap v6.2.1
Downloaded equivalent v1.0.2
Downloaded zmij v1.0.23
Downloaded smallstr v0.3.1
Downloaded autocfg v1.5.1
Downloaded itoa v1.0.18
Downloaded parking v2.2.1
Downloaded paste v1.0.15
Downloaded spin v0.9.9
Downloaded once_cell v1.21.4
Downloaded cfg-if v1.0.4
Downloaded num-derive v0.4.2
Downloaded lock_api v0.4.14
Downloaded serde_core v1.0.229
Downloaded string-interner v0.17.0
Downloaded pin-project-lite v0.2.17
Downloaded quote v1.0.47
Downloaded rustversion v1.0.23
Downloaded thiserror v2.0.20
Downloaded wasmi_core v0.32.3
Downloaded crossbeam-utils v0.8.22
Downloaded num-traits v0.2.19
Downloaded parking_lot_core v0.9.12
Downloaded proc-macro2 v1.0.107
Downloaded semver v1.0.28
Downloaded serde v1.0.229
Downloaded bitflags v2.13.1
Downloaded wasmparser-nostd v0.100.2
Downloaded syn v2.0.119
Downloaded serde_json v1.0.151
Downloaded libm v0.2.16
Downloaded zerocopy v0.8.56
Downloaded wasmi v0.32.3
Downloaded libc v0.2.189
Compiling proc-macro2 v1.0.107
Compiling quote v1.0.47
Compiling unicode-ident v1.0.24
Compiling serde_core v1.0.229
Compiling zerocopy v0.8.56
Compiling version_check v0.9.5
Checking cfg-if v1.0.4
Checking once_cell v1.21.4
Compiling serde v1.0.229
Checking smallvec v1.15.2
Compiling libc v0.2.189
Compiling zmij v1.0.23
Compiling rustversion v1.0.23
Compiling crossbeam-utils v0.8.22
Compiling parking_lot_core v0.9.12
Checking parking v2.2.1
Checking pin-project-lite v0.2.17
Compiling thiserror v2.0.20
Checking event-listener v5.4.2
Checking scopeguard v1.2.0
Compiling serde_json v1.0.151
Checking lock_api v0.4.14
Checking itoa v1.0.18
Checking event-listener-strategy v0.5.4
Checking memchr v2.8.3
Compiling ahash v0.8.12
Checking smallstr v0.3.1
Checking async-lock v3.4.2
Checking fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/design__images/core/vendor/fastrand-2.5.0)
Compiling autocfg v1.5.1
Compiling libm v0.2.16
Compiling paste v1.0.15
Checking foldhash v0.2.0
Checking downcast-rs v1.2.1
Checking indexmap-nostd v0.4.0
Checking equivalent v1.0.2
Checking bitflags v2.13.1
Checking spin v0.9.9
Checking semver v1.0.28
Checking arrayvec v0.7.8
Checking multi-stash v0.2.0
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
Compiling num-derive v0.4.2
Checking indexmap v2.14.1
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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/core)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.76s
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 parking_lot_core v0.9.12
Compiling crossbeam-utils v0.8.22
Compiling pin-project-lite v0.2.17
Compiling smallvec v1.15.2
Compiling rustversion v1.0.23
Compiling zmij v1.0.23
Compiling getrandom v0.4.3
Compiling serde v1.0.229
Compiling serde_json v1.0.151
Compiling scopeguard v1.2.0
Compiling thiserror v2.0.20
Compiling memchr v2.8.3
Compiling itoa v1.0.18
Compiling once_cell v1.21.4
Compiling event-listener v5.4.2
Compiling lock_api v0.4.14
Compiling hashbrown v0.14.5
Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/design__images/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/design__images/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/design__images/core)
Finished `release` profile [optimized] target(s) in 8.70s
core/target/wasm32-unknown-unknown/release/docs_core.wasm (481670 bytes)
=== rust: build, test
Compiling libc v0.2.189
Compiling serde_core v1.0.229
Compiling parking v2.2.1
Compiling pin-project-lite v0.2.17
Compiling smallvec v1.15.2
Compiling parking_lot_core v0.9.12
Compiling cfg-if v1.0.4
Compiling scopeguard v1.2.0
Compiling crossbeam-utils v0.8.22
Compiling zmij v1.0.23
Compiling thiserror v2.0.20
Compiling serde v1.0.229
Compiling serde_json v1.0.151
Compiling hashbrown v0.14.5
Compiling memchr v2.8.3
Compiling itoa v1.0.18
Compiling once_cell v1.21.4
Compiling arc-swap v1.9.2
Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/design__images/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/design__images/native/vendor/yrs-0.23.5)
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/core)
Finished `release` profile [optimized] target(s) in 13.17s
Compiling cfg-if v1.0.4
Compiling once_cell v1.21.4
Compiling smallvec v1.15.2
Compiling parking v2.2.1
Compiling pin-project-lite v0.2.17
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 memchr v2.8.3
Compiling itoa v1.0.18
Compiling thiserror v2.0.20
Compiling arc-swap v1.9.2
Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/design__images/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 downcast-rs v1.2.1
Compiling equivalent v1.0.2
Compiling indexmap-nostd v0.4.0
Compiling multi-stash v0.2.0
Compiling spin v0.9.9
Compiling arrayvec v0.7.8
Compiling bitflags v2.13.1
Compiling semver v1.0.28
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/design__images/native/vendor/yrs-0.23.5)
Compiling wasmi v0.32.3
warning: unused import: `ArrayRef`
--> /home/ci/work/repos/oficina__docs/wt/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/core)
Finished `test` profile [unoptimized + debuginfo] target(s) in 10.70s
Running unittests src/lib.rs (core/target/debug/deps/docs_core-1201d4ec6147f4e1)
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-c0907cae3129f9cb)
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-64f22f4115a157a3)
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-52a8ebf76b2be13d)
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-3677348a01914dda)
running 11 tests
test a_heading_level_is_a_number ... ok
test adjacent_runs_with_the_same_marks_merge ... ok
test one_text_per_block_and_none_when_empty ... ok
test an_unmarked_run_after_a_marked_one_inherits_nothing ... ok
test refuses_a_client_id_a_browser_cannot_read ... 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 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-7e193e481bf9f6a9)
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-62876a2ca4861b9d)
running 31 tests
test empty_document_is_empty_output ... ok
test a_hard_break_does_not_split_the_block_it_is_in ... ok
test escapes_html_in_text ... ok
test empty_block_is_preserved_like_html ... ok
test an_unknown_alignment_is_dropped_from_every_renderer ... ok
test escapes_json_in_text ... ok
test json_clamps_heading_level_like_html ... ok
test json_keeps_unknown_nodes_and_their_children ... ok
test json_of_an_empty_document_is_an_empty_doc_node ... ok
test a_document_with_no_alignment_renders_exactly_as_it_did_before ... ok
test json_names_every_font_mark ... 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 json_reports_paragraph_alignment ... ok
test json_is_deterministic ... ok
test renders_a_hard_break_in_every_renderer ... ok
test json_marks_are_in_a_fixed_order ... ok
test renders_every_font_mark_as_a_classed_span ... ok
test renders_headings_and_lists ... ok
test renders_marks ... ok
test renders_the_document_as_prosemirror_json ... ok
test renders_paragraphs_as_html ... 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_block_indent_as_a_class ... ok
test renders_font_and_size_marks_as_classed_spans ... 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-39794876a64f26f5)
running 3 tests
test initial_rejects_client_ids_outside_yjs_range ... ok
test initial_content_is_real_structured_literal_text ... ok
test initial_rejection_never_leaves_partial_content ... 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-afa98e9b1f36f051)
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-fc8689c55b21a942)
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-5259b0fff3512c00)
running 5 tests
test garbage_does_not_verify ... ok
test a_snapshot_of_this_document_verifies ... ok
test a_snapshot_replayed_into_an_empty_doc_reproduces_the_document ... 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-3f9bdae3bd938071)
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
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
| Blocking
waiting for file lock on build directory
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.04s
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
|
core/target/wasm32-unknown-unknown/release/docs_core.wasm (481670 bytes)
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.05s
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 39.23s
Running tests/wire_compat.rs (core/target/debug/deps/wire_compat-92ff538962f43085)
running 6 tests
test abi_rejects_garbage_without_panicking ... ok
test applies_concurrent ... ok
test abi_round_trips_a_fixture ... ok
test applies_formatted ... ok
test applies_hello ... 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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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.04s
Running tests/wire_compat.rs (target/debug/deps/wire_compat-92ff538962f43085)
running 6 tests
test abi_rejects_garbage_without_panicking ... ok
test applies_concurrent ... ok
test abi_round_trips_a_fixture ... ok
test applies_hello ... ok
test applies_formatted ... ok
test applies_unicode ... 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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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/design__images/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
=== spacing: every margin, padding and gap on the scale
=== go: vet, test, gofmt
ok github.com/carlosframework/docs/cmd/docs 3.327s
? 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.256s
ok github.com/carlosframework/docs/internal/core 14.940s
ok github.com/carlosframework/docs/internal/docs 251.791s
? 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.196s
ok github.com/carlosframework/docs/internal/docx 0.231s
ok github.com/carlosframework/docs/internal/export 0.227s
ok github.com/carlosframework/docs/internal/fonts 0.145s
ok github.com/carlosframework/docs/internal/lint 0.087s
? github.com/carlosframework/docs/internal/pdf [no test files]
ok github.com/carlosframework/docs/internal/shipped 5.238s
=== go: race detector on warm handles and the stream
amadan: job cancelled — a newer push superseded it
diff --git a/docs/superpowers/specs/2026-12-03-docs-images-design.md b/docs/superpowers/specs/2026-12-03-docs-images-design.md| new file mode 100644 |
| index 0000000..dfbc732 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/2026-12-03-docs-images-design.md |
| @@ -0,0 +1,446 @@ |
| +# Docs images: drop, paste or insert a picture |
| + |
| +Status: revision 1, 2026-12-03. For review. Nothing is built. |
| + |
| +**Asked for by Paul, 2026-12-03:** *"I need to be able to drag and drop an |
| +image into a document."* |
| + |
| +**Paul's rulings, 2026-12-03 (binding):** |
| +1. **Web first, Mac next.** The web editor gets drop, paste and Insert → |
| + Image first. The Mac app's drop and paste are the next slice (§8). |
| +2. **A short spec, then build.** This spec points at Mapa's images spec |
| + for everything the two apps share, and says only what is Docs' own. |
| + |
| +Branch: `design/images`, from `main` `19bcb22`. |
| + |
| +**What this spec builds on:** |
| +- **Mapa's images spec**, `oficina/mapa` |
| + `docs/superpowers/specs/2026-11-17-mapa-images.md` ("Mapa §n" below). |
| + It was built, reviewed by Fable through five rounds, and has been live on |
| + mapa.oficina.works since 2026-11-17, with a real CARLOS store. Its |
| + formats, metadata walker, serving headers, upload module and alt-text |
| + inset are taken as they are. |
| +- **Plan 7**, `docs/superpowers/plans/2026-09-02-images-links-tables.md`. |
| + Its D4 (the placeholder is a decoration, and the node goes in only when |
| + the upload succeeds) and its refusal of SVG stand. Its storage design is |
| + superseded here: it predates content sealing, `GetFor` and team mode. |
| +- **Content sealing**, `2026-09-07-content-sealing.md`. Docs prod has been |
| + sealed since 2026-11-17. |
| + |
| +## Why: what happens today |
| + |
| +Checked against `origin/main` `19bcb22`. |
| + |
| +- **The editor already has an `image` node.** `fixtures/schema.mjs` takes |
| + prosemirror-schema-basic's: inline, draggable, with attrs `src`, `alt` and |
| + `title`. |
| +- **Nothing gets an image in.** There is no drop, paste-file or insert path. |
| + Dropping a file inserts nothing. |
| +- **Pasted HTML is the only way an image node appears today,** and it keeps |
| + whatever `src` it came with. A remote `src` is blocked by the page CSP |
| + (`img-src 'self' data:`); a `data:` one shows in the editor. |
| +- **The read view, Markdown and PDF all drop images silently.** In |
| + `core/src/fragment.rs`, an unknown node renders only its children, and an |
| + image has none. `node_json` never writes an image's attrs, so the |
| + exporters cannot see them. |
| +- **Docs has no object store, no upload route and no image route.** |
| +- **Native already draws images.** `DocsImageStore` fetches a same-origin |
| + `src` through the signed-in client, up to 8 MB. Native paste writes |
| + pictures into the document as `data:` URIs, which the read view and the |
| + exports then drop. |
| + |
| +## 1. Decisions |
| + |
| +| # | Decision | Rejected | |
| +|---|---|---| |
| +| 1 | **Bytes are sealed in Docs before they leave the process,** with `content_cipher.go`'s AES-256-GCM under `DOCS_CONTENT_KEY`. <br>• Two new AAD kinds: 5 `image` (the bytes) and 6 `image-record` (the type, the width and height, and the true size). Each binds the document's UUID, with the image row's id in the `seq` field and 0 for `abi`. <br>• Before sealing, the plaintext is padded to the next multiple of 64 KiB, as Mapa decision 1 does. <br>• The object is stored as `application/octet-stream`. Its key is the SHA-256 of the ciphertext, and that hash is checked before opening (Mapa decision 3). | rastrillo's `blobs.Sealed`: it is a second encryption primitive under a second key. Docs has one content cipher, and the content-sealing spec keeps it that way. <br>Plaintext in the bucket, as Slides does: a photo in a document is as private as the text around it | |
| +| 2 | **An image belongs to exactly one document.** Its address is `/d/{sqid}/images/{id}`. The route serves it only when the image's row names that document and the viewer may read that document. | One app-wide `/images/{id}`, with scope taken from whichever document holds the image. Then typing another document's image address into your own would raise the question of which document's readers may see it. With one owner, the answer is always the same | |
| +| 3 | **Only a person who may write the document may upload to it.** That is the owner or a writer grant, the same check `ApplyUpdate` makes. The Team rung is read-only, so it may view images and not add them. | Letting any reader upload: a reader cannot insert the node anyway | |
| +| 4 | **The store is CARLOS's,** through `blobs.S3FromEnv`. Development and tests use `blobs.Dir`. <br>• An instance with no store, or with no `DOCS_CONTENT_KEY`, still boots. Upload answers 503, "Images aren't set up on this Docs yet." <br>• A partly delivered store boots too, with uploads at 503 and a log line naming the missing variable (Mapa decision 4). | Refusing to boot. An images fault must never take documents down | |
| +| 5 | **The node stays inline,** as the schema already has it and native already draws it. It gains two attrs, `width` and `height`: digit strings with `validate: "string\|null"`, written from the upload's reply. The read view uses them so the page does not shift as images load. | A block image node. That is a schema change on every client, native included, for layout that `max-width: 100%` already gives | |
| +| 6 | **An image is kept as long as its document is.** A soft-deleted document's images answer 404 with it. The purge verb, when it comes, deletes them (§3.5). v1 has no per-image removal and no sweep of images taken out of the text (Q1). | Mapa's pending → attached lifecycle. It hangs off revision commits, and Docs has none: every keystroke is a CRDT update, and undo in any open tab can bring a deleted node back | |
| + |
| +## 2. The web editor |
| + |
| +### 2.1 Ways in |
| + |
| +- **Drop image files** on the document. The new `prosemirror-dropcursor` |
| + marks the spot. It is a new dependency and gets a Colophon entry. |
| +- **Paste image files.** |
| +- **Insert → Image…**, in a new **Insert** menu between Format and Tools. |
| + This is the keyboard path: drag and drop is never the only way in. |
| +- **An image button** on the toolbar, and on the phone's quick bar and |
| + Format sheet. |
| +- The last two open a file input with |
| + `accept="image/png,image/jpeg,image/gif,image/webp"`. Given that list, iOS |
| + Safari hands over a HEIC photo as JPEG. |
| +- **Several files** upload in order, each into its own place. |
| +- **Moving an image within a document** is ProseMirror's own node drag. It |
| + uploads nothing. |
| + |
| +These are Mapa's ways in (Mapa §4.1), minus `/` → Image: Docs has no slash |
| +menu. |
| + |
| +### 2.2 Pasted HTML that carries images |
| + |
| +A `transformPasted` step looks at each `image` node in the slice before it |
| +reaches the CRDT: |
| + |
| +- **This document's own image** (`/d/{this sqid}/images/…`) is kept as it is. |
| +- **Another Docs document's image** on this origin is copied, with |
| + `POST /d/{sqid}/images/copy` (§3.3). Its place is a decoration while the |
| + copy runs, as an upload's is. That is what copying a picture between two |
| + documents needs: B's readers may not be able to read A. |
| +- **A `data:image/…` source** in one of the four formats is uploaded like a |
| + dropped file. This covers pictures pasted from native apps and from some |
| + web pages. |
| +- **Anything else** (a remote `https:` source, Google Docs' expiring |
| + `googleusercontent.com` addresses) is not inserted. A notice says how many |
| + were left out: "2 images weren't copied. Save them and drop them in." |
| + Fetching them from the browser is plan 7's D6, and stays out of this slice |
| + (§9). |
| + |
| +So after this ships, no new remote or `data:` source enters a document from |
| +the web editor. |
| + |
| +### 2.3 Upload, progress and failure |
| + |
| +This is Mapa §4.1 and §4.2, ported from Mapa's `editor/upload.mjs`: |
| + |
| +- **Large JPEGs are scaled down first.** Over 4,096 px on the long side, a |
| + JPEG is decoded with `createImageBitmap` (orientation from the image) and |
| + sent as JPEG at quality 0.9. The size check runs after scaling. |
| +- **The client checks type and size first,** for a quick message. The |
| + server's check is the one that counts. |
| +- **The upload goes with `XMLHttpRequest`,** so progress events exist. |
| +- **While it uploads, the place is a decoration, never a node:** a box of |
| + fixed height with the file name and a `<progress>`. The CRDT holds nothing |
| + until the bytes are stored, so the save queue, other tabs and |
| + collaborators never see an address that cannot resolve. |
| +- **The decoration maps through every transaction,** remote CRDT updates and |
| + resyncs included (`resync-controller.mjs`). |
| + - If its place is deleted, the image goes in at the end of the document, |
| + with the notice "Image added at the end". |
| + - If an undo took the place away, the result is dropped. The stored image |
| + stays in the bucket under §1 decision 6; Q1 covers that. |
| +- **On success,** the `image` node is inserted with `src`, `width` and |
| + `height` from the reply. |
| +- **On failure,** the box says why and offers **Retry** and **Remove**. The |
| + reasons are: too large, not a supported image, SVG, over your allowance, |
| + storage full, offline, not set up. |
| +- **Leaving with an upload in flight** gets the save queue's existing |
| + "Leave anyway?" prompt. |
| + |
| +### 2.4 The image on the page |
| + |
| +- **A NodeView** draws |
| + `<img src alt width height loading="lazy" decoding="async">`, with |
| + `max-width: 100%; height: auto`. That is the same markup the read view |
| + draws (§4.1). |
| +- **A failed load is retried once after 2 s,** to cover a collaborator's |
| + image arriving a moment before its bytes are readable. After that it is |
| + drawn as a fixed box, "Image not available", with the alt text under it. |
| +- **Alt text** is Mapa's inset: an ALT badge on images without alt text, and |
| + the field over the image after an insert when the selection has not moved |
| + (Mapa §4.3 and build note I22). Ported from `altinset.mjs`. |
| +- **A selected image** shows the focus ring and a small bubble with |
| + **Alt text** and **Open full size**. Delete and Backspace remove it, like |
| + any node. |
| +- **No resizing and no captions** in v1 (Mapa Q3, ruled for Mapa). |
| +- **Read-only viewers** (the Team rung, a reader grant) see images and get |
| + no way in. |
| + |
| +### 2.5 Strings |
| + |
| +Every string here goes through the copy-review skill before merge, in |
| +`copy-review/images`. Mapa's reviewed images strings are the starting |
| +point, with "Mapa" changed to "Docs". |
| + |
| +## 3. The server |
| + |
| +### 3.1 Tables |
| + |
| +Migration `00NN_images`: |
| + |
| +| Column | Plaintext? | Why | |
| +|---|---|---| |
| +| `id` | yes | the row's key. It also goes in the AAD | |
| +| `public_id` | yes | the address's id: random base 36, unique, never sequential | |
| +| `document_id` | yes | the one document it belongs to (§1 decision 2). Scope is answered from it without unsealing | |
| +| `uploader_id` | yes | who uploaded it; the quota counts by it | |
| +| `created_at` | yes | | |
| +| `stored_bytes` | yes | the ciphertext's size, in 64 KiB steps; the bucket shows it anyway | |
| +| `object_key` | yes | the bucket key, a hash of ciphertext | |
| +| `sealed_record` | sealed (kind 6) | the sniffed type, the width and height after orientation, and the true size | |
| + |
| +- **No file name is kept,** sealed or not. |
| +- **The alt text lives in the document,** so it is sealed with the document. |
| +- **`image_trash (object_key, queued_at)`** queues objects to delete |
| + (§3.5). |
| + |
| +**The content-sealing spec's leak list gains one row:** how many images each |
| +document holds, who uploaded each and when, and its size to within 64 KiB. |
| +These are counts, times and coarse sizes, the same kind of thing the leak |
| +list already holds. Nothing in them shows content. |
| + |
| +### 3.2 Checking the file |
| + |
| +This is Mapa §5 in full: |
| +- PNG, JPEG, GIF and WebP only, decided from the bytes. SVG, HEIC, AVIF and |
| + everything else are refused with a 415. |
| +- Dimensions come from the format's own `DecodeConfig`: at most 10,000 px on |
| + a side and 50 megapixels. |
| +- The container walker strips metadata without re-encoding. It keeps the |
| + ICC profile and JPEG orientation, and refuses anything it cannot parse. |
| + |
| +Mapa's `internal/mapa/imagefile` package is copied into |
| +`internal/imagefile` with its tests, fuzz targets and testdata. |
| +`golang.org/x/image/webp` is a new dependency, with a Colophon entry. |
| + |
| +**The per-image limit is 8 MiB, not Mapa's 10.** The shipped native apps |
| +fetch at most 8 MB per image (`DocsAttachments.swift`), and a picture |
| +uploaded from the web must show on the Mac without an app release. |
| + |
| +### 3.3 Routes |
| + |
| +Every route sits in the signed-in group and resolves the document with |
| +`GetFor`. A document the person may not read gets the app's ordinary 404, |
| +with the same body and headers as a document that does not exist. |
| + |
| +| Route | Who | What | |
| +|---|---|---| |
| +| `POST /d/{sqid}/images` | a writer | multipart field `file`, bounded with `MaxBytesReader`. Checks (§3.2), quota (§3.4), seal, `Put`, row. Replies `{src, width, height}` | |
| +| `POST /d/{sqid}/images/copy` | a writer of `{sqid}` who may also read the source document | `{src}` naming a Docs image. Opens it and stores it again as a new image of `{sqid}`, with a new object. The same reply | |
| +| `GET /d/{sqid}/images/{id}` | a reader | serves the image only when its row's `document_id` is this document; otherwise the same 404 | |
| +| `GET /p/{token}/images/{id}` | anyone holding a link capability | the same, with the document from `ByToken` | |
| + |
| +- **Serving** follows Mapa §1.4: |
| + - the stored type, `nosniff`, `Content-Security-Policy: default-src 'none'; sandbox`, |
| + `Content-Disposition: inline` and `Cross-Origin-Resource-Policy: same-origin`; |
| + - an `ETag` of the public id, so a match answers 304 without reading the store; |
| + - `Cache-Control: private, max-age=3600, immutable`. The hour is the stated |
| + bound on a browser keeping its own copy after access is lost. |
| +- **Team mode:** both GET routes write through `writeGuardedBody`, so a |
| + lease that lapses mid-body aborts the response, as the exports do. |
| +- **One semaphore covers every blob operation** (Mapa §1.4): four at a time. |
| + An upload or copy that waits 10 s answers 503 with `Retry-After`. A GET |
| + waits up to 30 s. |
| +- **Object work happens before the transaction.** If the transaction fails |
| + after a `Put`, the object is deleted, or queued in `image_trash` when that |
| + delete fails. |
| +- **Store binding:** the bucket wrapper is copied from Mapa's |
| + `images_bucket.go`. Its `Put` goes over a presigned URL, so a 403 from the |
| + bucket is told apart from other failures. |
| +- **The page CSP does not change.** `img-src 'self' data:` already allows |
| + same-origin images. |
| + |
| +### 3.4 Quota |
| + |
| +- **Per image:** 8 MiB (§3.2), 10,000 px a side, 50 MP. |
| +- **Per person:** `DOCS_IMAGE_QUOTA_PERSON`, default 1 GiB, counts the |
| + stored bytes of images that person uploaded to documents that are not |
| + deleted. It is checked at upload and copy, never on a CRDT write. The |
| + refusal names the figure: "You've used 1 GB of images." |
| +- **No team-wide total.** Mapa has one because its team pages are a pool |
| + everyone can see. In Docs, a total over everyone's uploads would leak a |
| + count of images in documents a person cannot read. |
| +- **The account's plan** bounds everything. When CARLOS denies |
| + `PutObject`, the answer is "Docs' storage is full. Ask whoever runs your |
| + team's Oficina." (Mapa §3.4). |
| + |
| +### 3.5 Lifecycle |
| + |
| +- **Soft-deleting a document** removes nothing. Its images answer 404 |
| + because `GetFor` no longer finds the document. |
| +- **The purge verb** (`delete.go`: "a purge verb is separate and still to |
| + come") must delete the document's image rows and queue their objects in |
| + `image_trash` in its own transaction. This spec adds that duty to the |
| + purge's own spec. It builds no purge. |
| +- **`image_trash` is emptied in a goroutine after boot.** It never fails |
| + boot (Mapa §3.3, step 4). |
| + |
| +### 3.6 Agents |
| + |
| +The agent operations API (`/api/v1/operations`) gains no image verbs. The |
| +build checks that an agent edit to a paragraph holding an image keeps the |
| +image node and its attrs. A test pins that. |
| + |
| +## 4. The core and the exports |
| + |
| +### 4.1 The read view |
| + |
| +`fragment_html` gains two arguments: the document's own sqid, and a base, |
| +which is either `/d/{sqid}` or `/p/{token}`. Go checks both against their |
| +grammars before the call, and the core checks them again. |
| + |
| +An `image` node renders `<img>` only when all of these hold: |
| +- its `src` is exactly `/d/{own sqid}/images/{id}`, with `id` matching the |
| + public-id grammar; |
| +- `width` and `height`, if present, are 1 to 5 digits, clamped to 10,000. |
| + |
| +It then renders as |
| +`<img src="{base}/images/{id}" alt="…" width="W" height="H" loading="lazy" decoding="async">`. |
| +The alt text is escaped with the existing `escape()`. |
| + |
| +Any other image is drawn as a fixed-size `<span class="docs-image-missing">` |
| +holding its escaped alt text, or "Image" when there is none. That covers a |
| +remote source, a `data:` source and another document's address. |
| + |
| +This is the first time a byte from a document reaches attribute position |
| +(`fragment.rs:42-56`). The rule becomes: **only the `id`, after it has |
| +matched the grammar exactly,** and the alt text, escaped. The comment block |
| +says so. Adversarial tests cover quotes, `javascript:`, encoded slashes, |
| +another sqid, a trailing path, Unicode look-alikes, and alt text with |
| +`"<>&'`. |
| + |
| +**ABI 8.** The new arguments change an export, so stored snapshots are |
| +rebuilt from the update log on their next write past 256 updates, as at |
| +ABI 5 (`docs-google-import` memory: reads rebuild from the full log until |
| +then). |
| + |
| +### 4.2 Exports |
| + |
| +- **`node_json`** writes `src`, `alt`, `width` and `height` for `image`. |
| +- **Markdown:** ``. The |
| + address only opens for someone signed in who may read the document. The |
| + export page says so, rather than calling the export lossless. Any other |
| + image becomes `![alt]()`, never a remote URL. |
| +- **PDF, slice 1:** each image is a line, *[Image: alt]*, in the body's |
| + italic. Nothing vanishes silently. |
| +- **PDF, slice 3:** real images. This is plan 7's D5 and Task 10: JPEG |
| + passes through as `DCTDecode` (CMYK with `/Decode`); PNG, GIF (first |
| + frame) and WebP (first frame) are decoded to 8-bit RGB with an `/SMask` |
| + for alpha. Each is scaled to the column, never up. `internal/pdf` gains |
| + an uncompressed stream and `/XObject` in `/Resources`. Reads go through |
| + the semaphore. A missing object falls back to the slice 1 line. |
| +- **DOCX** has no export yet, and **Google and DOCX import** still leave |
| + pictures out with `CodeObjectOmitted`. Neither is in this spec (§9). |
| + |
| +## 5. Native |
| + |
| +- **No release is needed for native to show web uploads.** `DocsImageStore` |
| + resolves `/d/{sqid}/images/{id}` against the document URL and fetches it |
| + through the signed-in client, up to 8 MB. Images are at most 8 MiB |
| + (§3.2), and the build checks this on a real Mac against a local server. |
| +- **Native paste still writes `data:` URIs** until slice 4. Those images |
| + show in the native and web editors, but the read view and exports draw |
| + them as the missing box (§4.1). The web editor uploads a `data:` image |
| + when it is pasted (§2.2), not one that is already in the document. |
| +- **Slice 4, the Mac** (Paul's ruling 1), is its own short addendum to this |
| + spec, written when slice 2 lands. It covers: |
| + - the editor as an `NSDraggingDestination` for image files and promised |
| + files from Photos and Safari; |
| + - paste of image data; |
| + - both going through `POST /d/{sqid}/images` with an upload placeholder; |
| + - native paste no longer writing `data:` URIs. |
| + |
| + iPhone follows the Mac. |
| + |
| +## 6. Security |
| + |
| +- **Scope** is the document's own (§1 decisions 2 and 3, §3.3). |
| +- **Bytes** are sealed, padded and hash-checked (§1 decision 1). The bucket |
| + holds only ciphertext typed `application/octet-stream`. |
| +- **Formats** are an allowlist checked from the bytes, and metadata is |
| + stripped (§3.2). SVG is refused. |
| +- **Serving** is sandboxed and nosniffed (§3.3). The page CSP is unchanged. |
| +- **The read view** emits only a grammar-checked id (§4.1). |
| +- **Scanning** cannot read sealed objects and is never requested (Mapa §1.1 |
| + and §8 step 7). |
| +- **The plaintext gate** extends to the blob directory: no canary string |
| + and no alt text appear there, and no blob starts with a PNG or JPEG magic |
| + number. |
| + |
| +## 7. Tests |
| + |
| +These run in CI unless marked *browser*. Browser tests run locally, |
| +filtered to this feature, as the machine rules say. |
| + |
| +- **Scope:** |
| + - A non-reader gets the same 404 status, headers and body for an image |
| + route as for a document that does not exist. This holds for upload, |
| + copy and GET. |
| + - `/d/B/images/{A's id}` is a 404 even for someone who reads both A and B. |
| + - Copy refuses a source the person cannot read. |
| + - A Team-rung member may GET but not upload. |
| + - Mutants that drop each check must be caught. |
| +- **Team mode:** a lease that lapses mid-body aborts an image response. |
| +- **Sealing:** canaries in `tEXt`, EXIF, XMP, a trailer, the file name and |
| + the alt text never reach the database, the WAL or the blob directory. |
| + Stored sizes are 64 KiB steps plus the seal's overhead. A swapped object |
| + is refused. |
| +- **Formats:** Mapa's `imagefile` tests and fuzz seeds, run as they are in |
| + Mapa. |
| +- **Refusals:** each refusal in §3.2–§3.4 gives its status and sentence. |
| + That includes 503 with no store, 503 with no content key, and the |
| + semaphore's 503. |
| +- **Core:** §4.1's adversarial cases, and a golden page with every image |
| + kind. |
| +- **Exports:** Markdown and the PDF line for each image kind. |
| +- **Agents:** §3.6. |
| +- *browser:* |
| + - drop one file and three files; |
| + - paste a file; |
| + - Insert → Image… using only the keyboard, through the alt field; |
| + - paste HTML holding each of §2.2's four kinds; |
| + - an upload in flight across a remote update, a resync, an undo and |
| + leaving the page; |
| + - a second tab sees the image arrive and load; |
| + - a JPEG over 4,096 px with EXIF orientation 6 arrives upright and no |
| + larger than 4,096 px; |
| + - no layout shift when images load in the read view; |
| + - axe-core finds nothing serious. |
| + |
| +## 8. Slices and deploy order |
| + |
| +1. **Server and core:** the migration, `imagefile`, sealing kinds, routes, |
| + quota, store binding, ABI 8 read view, `node_json`, Markdown, and the PDF |
| + line. Behind no switch. Without a store, uploads answer 503 and there is |
| + no way in yet. |
| +2. **The web editor:** §2 in full, and the copy review. Slices 1 and 2 can |
| + share a branch and land together. They must deploy together, because |
| + the editor's ways in need the routes. |
| +3. **PDF images** (§4.2). |
| +4. **The Mac** (§5), then iPhone. |
| + |
| +**CARLOS setup**, after slices 1 and 2 are deployed, follows Mapa §8 with |
| +`--app docs`. The `oficina` account's plan was already read for Mapa on |
| +2026-11-17: its store was created with scanning "not requested". |
| +1. `carlos store create --app docs --account oficina`, then |
| + `store scan status` (expect "not requested"), then `store status`. |
| +2. Restart, check `/api/version` and the log line "docs: object store |
| + bound", then upload one real image and open it. |
| + |
| +The team instance (`lagged`) gets images only once it is sealed and has a |
| +store, which needs `--private-storage` and Alta's `Store: true` for Docs. |
| +Until then it answers 503 there, and says so. |
| + |
| +## 9. Deliberately not built |
| + |
| +| Thing | Trigger | |
| +|---|---| |
| +| A sweep of images taken out of the text | Q1 rules for it, or storage use shows abandoned uploads matter | |
| +| Removing one image from storage | A picture that should never have been uploaded, before purge exists | |
| +| Fetching remote images on paste (Google Docs, the web) | Paul asks for Google Docs paste fidelity (plan 7, D6) | |
| +| Images in Google and DOCX import | The import's next fidelity pass | |
| +| Resizing, a width per image, captions | People ask, as with Mapa §9 | |
| +| SVG behind Slides' sanitiser; AVIF and HEIC | As Mapa §9 | |
| +| Lifting `imagefile` and the bucket wrapper into rastrillo | A third app needs images. Two copies are tolerable; three are not | |
| + |
| +## 10. Open questions for Paul |
| + |
| +1. **How long a picture is kept.** *Recommended:* for as long as its |
| + document is kept. A picture deleted from the text stays stored, sealed |
| + and reachable only by the document's readers who still hold its |
| + address. A sweep would have to read every document's current text and |
| + guess at open tabs' undo stacks. The alternative is a 30-day sweep of |
| + pictures the current text no longer holds. |
| +2. **Limits.** *Recommended:* 8 MiB per image, so shipped Mac and iPhone |
| + apps can show every one, and 1 GiB per person. |
| +3. **PDF.** *Recommended:* an "[Image: alt]" line in slice 1, and real |
| + images in slice 3, built straight after. |
| +4. **Images pasted from other sites and Google Docs.** *Recommended:* left |
| + out with a notice in v1 (§2.2). The alternative is to try fetching them |
| + from the browser now. |
| +5. **Mapa's rulings carried over:** SVG refused, no resizing or captions, |
| + and JPEGs scaled to 4,096 px. *Recommended:* yes, the same as Mapa. |