oficina / docs Public

Docs native redesign S2a: the Mac document window

One title (the centred duplicate is gone): Docs' own title area in the
toolbar, renamed in place (double-click, File ▸ Rename ⇧⌘R), with a
subtitle for the team and the sync state (§6: Saved, Saving…, View only,
No longer available, Signed out, offline and errors) replacing the sync
row; undo/redo and Format in the header; the floating Format inspector
like the web (Style, Text, Alignment, Lists), open by default and
remembered app-wide, ⌥⌘I; reader mode without formatting chrome; callouts
beside the inspector; the page centred by the web's rule. Spacing on
DocsSpacing. New docs-window snapshots (light/dark, ar, ru, narrow,
callouts); six Mac 150% editor screens moved 8 px for the centring rule.
Paul ruled "Ship it!" (2026-11-24): the eight new English strings ship
as drafted; copy review follows.

Discussion oficina/docs #169. Reviewed by Claude Fable 5.2: APPROVE AFTER
FIXES; all code findings fixed. Hub CI passed at ce2b004.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 2704697b22c965aa6cc26af849db5684bfd28073 parent d5a328a
87 files changed, +2,748 −379
  • docs/superpowers/specs/2026-11-22-native-redesign-design.md +1 −1
  • native/apple/Sources/DocsApp/DocsAccountWindow.swift +6 −1
  • native/apple/Sources/DocsApp/DocsApp.swift +1 −1
  • native/apple/Sources/DocsApp/DocsDocumentWindow.swift +15 −1
  • native/apple/Sources/DocsApp/DocsWindowCommands.swift +1 −0
  • native/apple/Sources/DocsApp/DocsWindows.swift +3 −0
  • native/apple/Sources/DocsKit/DocsDesk.swift +147 −0
  • native/apple/Sources/DocsKit/DocsDocumentHeader.swift +360 −0
  • native/apple/Sources/DocsKit/DocsDocumentMenu.swift +21 −5
  • native/apple/Sources/DocsKit/DocsEditorCommands.swift +62 −27
  • native/apple/Sources/DocsKit/DocsEditorContext.swift +5 −1
  • native/apple/Sources/DocsKit/DocsFormatInspector.swift +255 −0
  • native/apple/Sources/DocsKit/DocsJumpControls.swift +7 −0
  • native/apple/Sources/DocsKit/DocsModel.swift +78 −7
  • native/apple/Sources/DocsKit/DocsOficinaID.swift +11 −0
  • native/apple/Sources/DocsKit/DocsPagedTextView.swift +3 −1
  • native/apple/Sources/DocsKit/DocsSubtitle.swift +202 −0
  • native/apple/Sources/DocsKit/DocsToolsControls.swift +68 −38
  • native/apple/Sources/DocsKit/DocsWorkspace.swift +90 −37
  • native/apple/Sources/DocsKit/DocumentCommands.swift +1 −1
  • native/apple/Sources/DocsKit/NativeDocumentTextView.swift +7 −3
  • native/apple/Sources/DocsKit/Resources/ar.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/ar.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/bn.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/bn.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/en.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/en.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/es.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/es.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/ga.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/ga.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/hi.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/hi.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/ja.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/ja.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/pt.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/pt.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/ru.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/ru.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/vi.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/vi.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/yue.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/yue.lproj/Mac.strings +0 −20
  • native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Localizable.strings +18 −0
  • native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Mac.strings +0 −20
  • native/apple/Tests/DocsKitTests/DocsAccessTests.swift +132 −0
  • native/apple/Tests/DocsKitTests/DocsDeskLayoutTests.swift +60 −0
  • native/apple/Tests/DocsKitTests/DocsHistoryObservationTests.swift +74 −0
  • native/apple/Tests/DocsKitTests/DocsInspectorStyleTests.swift +18 −0
  • native/apple/Tests/DocsKitTests/DocsRenameTests.swift +89 −0
  • native/apple/Tests/DocsKitTests/DocsSubtitleTests.swift +115 −0
  • native/apple/Tests/DocsSnapshots/EditorSnapshots.swift +33 −6
  • native/apple/Tests/DocsSnapshots/WindowSnapshots.swift +145 −0
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/ENVIRONMENT +9 −0
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ar-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ar-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ru-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ru-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-callout-narrow-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-callout-narrow-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-closed-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-closed-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ar-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ar-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-narrow-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-narrow-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ru-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ru-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-reader-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-reader-light-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-unavailable-dark-default.png binary
  • native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-unavailable-light-default.png binary
  • native/apple/Tests/DocsWindowTests/DocsWindowCloserTests.swift +45 −0
  • native/apple/Tests/DocsWindowTests/DocumentWindowChromeTests.swift +221 −0
  • native/apple/Tests/DocsWindowTests/SignedInLaunchTests.swift +17 −0
  • native/smoke/document-window/Sources/HeaderSpike.swift +197 −0
  • native/smoke/document-window/Sources/Smoke.swift +33 −9

CI passed — run details

CI log
amadan: log truncated — showing the last 524137 bytes of 659519
     |                 |
     |                 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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/core)
    Finished `release` profile [optimized] target(s) in 13.29s
   Compiling cfg-if v1.0.4
   Compiling once_cell v1.21.4
   Compiling smallvec v1.15.2
   Compiling pin-project-lite v0.2.17
   Compiling parking v2.2.1
   Compiling serde_core v1.0.229
   Compiling zerocopy v0.8.56
   Compiling libc v0.2.189
   Compiling scopeguard v1.2.0
   Compiling crossbeam-utils v0.8.22
   Compiling zmij v1.0.23
   Compiling itoa v1.0.18
   Compiling memchr v2.8.3
   Compiling thiserror v2.0.20
   Compiling arc-swap v1.9.2
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/main/core/vendor/fastrand-2.5.0)
   Compiling foldhash v0.2.0
   Compiling lock_api v0.4.14
   Compiling num-traits v0.2.19
   Compiling libm v0.2.16
   Compiling event-listener v5.4.2
   Compiling smallstr v0.3.1
   Compiling indexmap-nostd v0.4.0
   Compiling downcast-rs v1.2.1
   Compiling equivalent v1.0.2
   Compiling semver v1.0.28
   Compiling multi-stash v0.2.0
   Compiling arrayvec v0.7.8
   Compiling bitflags v2.13.1
   Compiling spin v0.9.9
   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/main/native/vendor/yrs-0.23.5)
   Compiling wasmi v0.32.3
warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/core)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 10.67s
     Running unittests src/lib.rs (core/target/debug/deps/docs_core-97822c04772ad1f7)

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-0e216d1fab072ba4)

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-0fc3d3217845bff4)

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-730947f15ca35a13)

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-fb6076b78dd6191d)

running 11 tests
test a_heading_level_is_a_number ... ok
test an_unmarked_run_after_a_marked_one_inherits_nothing ... ok
test one_text_per_block_and_none_when_empty ... 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 adjacent_runs_with_the_same_marks_merge ... ok
test the_abi_reports_each_refusal_as_its_own_code ... ok
test writes_only_into_an_empty_document ... ok
test the_snapshot_replays_to_the_same_structure ... ok
test refuses_malformed_lists_and_writes_nothing ... 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-3ae34b202043745b)

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-fa0c864a2c14104d)

running 31 tests
test empty_document_is_empty_output ... ok
test a_hard_break_does_not_split_the_block_it_is_in ... ok
test empty_block_is_preserved_like_html ... ok
test an_unknown_alignment_is_dropped_from_every_renderer ... ok
test escapes_html_in_text ... ok
test escapes_json_in_text ... ok
test json_clamps_heading_level_like_html ... ok
test json_of_an_empty_document_is_an_empty_doc_node ... ok
test json_keeps_unknown_nodes_and_their_children ... ok
test a_document_with_no_alignment_renders_exactly_as_it_did_before ... ok
test json_names_every_font_mark ... ok
test nested_blocks_do_not_duplicate_their_text ... ok
test renders_a_code_block_as_the_editor_does ... ok
test reads_paragraphs_as_blocks ... ok
test json_reports_paragraph_alignment ... ok
test renders_a_hard_break_in_every_renderer ... ok
test json_is_deterministic ... ok
test json_marks_are_in_a_fixed_order ... ok
test renders_every_font_mark_as_a_classed_span ... ok
test renders_paragraphs_as_html ... ok
test renders_paragraph_alignment_as_a_class ... ok
test renders_headings_and_lists ... ok
test renders_marks ... ok
test renders_the_document_as_prosemirror_json ... ok
test text_sibling_before_a_block_is_separated ... ok
test unknown_nodes_keep_their_text ... ok
test renders_font_and_size_marks_as_classed_spans ... ok
test renders_block_indent_as_a_class ... ok
test renders_the_point_ladder_and_the_scale_it_replaced ... ok
test reports_block_indent_to_the_exporters ... ok
test renders_every_family_in_the_manifest ... ok

test result: ok. 31 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/initial.rs (core/target/debug/deps/initial-10c44c58c64afc80)

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-2bbe34b2adedc94a)

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-774748a98e788976)

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-3e955456a9c0a169)

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-207dd6b23ace774e)

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
   |
83 |     fn transact_mut(&self) -> TransactionMut;
   |                     ^^^^^     ^^^^^^^^^^^^^^ the same lifetime is hidden here
   |                         Blocking| waiting for file lock on build directory

   |                     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
    |
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
core/target/wasm32-unknown-unknown/release/docs_core.wasm (481670 bytes)
...
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.39s

     Running tests/wire_compat.rs (core/target/debug/deps/wire_compat-63a6a403c236f6a0)

running 6 tests
test abi_rejects_garbage_without_panicking ... ok
test applies_concurrent ... ok
test abi_round_trips_a_fixture ... ok
test applies_unicode ... ok
test applies_formatted ... ok
test applies_hello ... 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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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-63a6a403c236f6a0)

running 6 tests
test abi_rejects_garbage_without_panicking ... ok
test abi_round_trips_a_fixture ... ok
test applies_concurrent ... ok
test applies_hello ... ok
test applies_unicode ... ok
test applies_formatted ... 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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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.217s
?   	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.266s
ok  	github.com/carlosframework/docs/internal/core	14.916s
ok  	github.com/carlosframework/docs/internal/docs	163.680s
?   	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.195s
ok  	github.com/carlosframework/docs/internal/docx	0.217s
ok  	github.com/carlosframework/docs/internal/export	0.229s
ok  	github.com/carlosframework/docs/internal/fonts	0.156s
ok  	github.com/carlosframework/docs/internal/lint	0.086s
?   	github.com/carlosframework/docs/internal/pdf	[no test files]
ok  	github.com/carlosframework/docs/internal/shipped	5.358s
=== go: build ./... (the app, not just the packages tests import)
gate: ok
=== native ===
sync-fonts: 62 faces match internal/fonts (20.9 MB).
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling cfg-if v1.0.4
   Compiling serde_core v1.0.229
   Compiling crossbeam-utils v0.8.22
   Compiling pin-project-lite v0.2.17
   Compiling rustversion v1.0.23
   Compiling parking_lot_core v0.9.12
   Compiling getrandom v0.4.3
   Compiling zmij v1.0.23
   Compiling smallvec v1.15.2
   Compiling serde v1.0.229
   Compiling serde_json v1.0.151
   Compiling thiserror v2.0.20
   Compiling scopeguard v1.2.0
   Compiling event-listener v5.4.2
   Compiling lock_api v0.4.14
   Compiling memchr v2.8.3
   Compiling once_cell v1.21.4
   Compiling itoa v1.0.18
   Compiling hashbrown v0.14.5
   Compiling event-listener-strategy v0.5.4
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/main/core/vendor/fastrand-2.5.0)
   Compiling smallstr v0.3.1
   Compiling async-lock v3.4.2
   Compiling arc-swap v1.9.2
   Compiling dashmap v6.2.1
   Compiling syn v3.0.5
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
   Compiling yrs v0.23.5 (/home/ci/work/repos/oficina__docs/wt/main/native/vendor/yrs-0.23.5)
warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/native/vendor/yrs-0.23.5/src/store.rs:441:33
    |
441 |     pub(crate) fn read_blocking(&self) -> RwLockReadGuard<Store> {
    |                                 ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
    |                                 |
    |                                 the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
    |
441 |     pub(crate) fn read_blocking(&self) -> RwLockReadGuard<'_, Store> {
    |                                                           +++

warning: hiding a lifetime that's elided elsewhere is confusing
   --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/native/vendor/yrs-0.23.5/src/store.rs:459:34
    |
459 |     pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<Store> {
    |                                  ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
    |                                  |
    |                                  the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
    |
459 |     pub(crate) fn write_blocking(&self) -> RwLockWriteGuard<'_, Store> {
    |                                                             +++

warning: hiding a lifetime that's elided elsewhere is confusing
   --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/native/vendor/yrs-0.23.5/src/transact.rs:128:21
    |
128 |     fn transact_mut(&self) -> TransactionMut {
    |                     ^^^^^     ^^^^^^^^^^^^^^ the same lifetime is hidden here
    |                     |
    |                     the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
    |
128 |     fn transact_mut(&self) -> TransactionMut<'_> {
    |                                             ++++

warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
   Compiling docs-native-crdt v0.1.0 (/home/ci/work/repos/oficina__docs/wt/main/native/crdt)
warning: unused import: `XmlFragment`
 --> src/projection.rs:3:68
  |
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
  |                                                                    ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: function `branch` is never used
  --> src/projection.rs:15:8
   |
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: `docs-native-crdt` (lib) generated 2 warnings
    Finished `release` profile [optimized] target(s) in 9.35s
   Compiling proc-macro2 v1.0.107
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.47
   Compiling libc v0.2.189
   Compiling serde_core v1.0.229
   Compiling parking v2.2.1
   Compiling smallvec v1.15.2
   Compiling rustversion v1.0.23
   Compiling zmij v1.0.23
   Compiling pin-project-lite v0.2.17
   Compiling crossbeam-utils v0.8.22
   Compiling parking_lot_core v0.9.12
   Compiling serde v1.0.229
   Compiling serde_json v1.0.151
   Compiling scopeguard v1.2.0
   Compiling thiserror v2.0.20
   Compiling cfg-if v1.0.4
   Compiling lock_api v0.4.14
   Compiling once_cell v1.21.4
   Compiling event-listener v5.4.2
   Compiling hashbrown v0.14.5
   Compiling itoa v1.0.18
   Compiling memchr v2.8.3
   Compiling smallstr v0.3.1
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__docs/wt/main/core/vendor/fastrand-2.5.0)
   Compiling event-listener-strategy v0.5.4
   Compiling async-lock v3.4.2
   Compiling arc-swap v1.9.2
   Compiling syn v3.0.5
   Compiling dashmap v6.2.1
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
   Compiling yrs v0.23.5 (/home/ci/work/repos/oficina__docs/wt/main/native/vendor/yrs-0.23.5)
warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/native/vendor/yrs-0.23.5/src/transact.rs:128:21
    |
128 |     fn transact_mut(&self) -> TransactionMut {
    |                     ^^^^^     ^^^^^^^^^^^^^^ the same lifetime is hidden here
    |                     |
    |                     the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
    |
128 |     fn transact_mut(&self) -> TransactionMut<'_> {
    |                                             ++++

warning: `yrs` (lib) generated 66 warnings (run `cargo fix --lib -p yrs` to apply 35 suggestions)
   Compiling docs-native-crdt v0.1.0 (/home/ci/work/repos/oficina__docs/wt/main/native/crdt)
warning: unused import: `XmlFragment`
 --> src/projection.rs:3:68
  |
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
  |                                                                    ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: function `branch` is never used
  --> src/projection.rs:15:8
   |
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: `docs-native-crdt` (lib test) generated 2 warnings (2 duplicates)
warning: `docs-native-crdt` (lib) generated 2 warnings
warning: variable does not need to be mutable
  --> src/bin/gc_undo_kept_probe.rs:26:9
   |
26 |     let mut record = |stream: &Vec<Vec<u8>>, editor: &Editor| {
   |         ----^^^^^^
   |         |
   |         help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default

warning: `docs-native-crdt` (bin "gc_undo_kept_probe" test) generated 1 warning (run `cargo fix --bin "gc_undo_kept_probe" -p docs-native-crdt --tests` to apply 1 suggestion)
warning: `docs-native-crdt` (bin "gc_undo_kept_probe") generated 1 warning (1 duplicate)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 13.35s
     Running unittests src/lib.rs (native/crdt/target/debug/deps/docs_native_crdt-bec4e314578f2807)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/bin/gc_undo_kept_probe.rs (native/crdt/target/debug/deps/gc_undo_kept_probe-46c0d9a2b63d27b4)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/bin/rule_wire_probe.rs (native/crdt/target/debug/deps/rule_wire_probe-9d388391f9443910)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/bin/update_wire_probe.rs (native/crdt/target/debug/deps/update_wire_probe-76d2b536247bb746)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/bin/wire_fixture.rs (native/crdt/target/debug/deps/wire_fixture-ad504e0c39ed9837)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/convergence_fuzz.rs (native/crdt/target/debug/deps/convergence_fuzz-ed06eec891d97101)

running 2 tests
test three_editors_converge_with_causal_delivery has been running for over 60 seconds
test three_editors_converge_with_shuffled_duplicated_delivery has been running for over 60 seconds
test three_editors_converge_with_causal_delivery ... ok
test three_editors_converge_with_shuffled_duplicated_delivery ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 98.22s

     Running tests/damaged_snapshots.rs (native/crdt/target/debug/deps/damaged_snapshots-8f094d142954854d)

running 3 tests
test parked_content_reads_the_same_after_a_rebuild ... ok
test an_edit_on_a_damaged_replica_does_not_carry_what_it_parks ... ok
test every_damaged_snapshot_heals_by_catching_up_from_the_start_and_rebuilding ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s

     Running tests/delete_tail_review.rs (native/crdt/target/debug/deps/delete_tail_review-4e5adb24fc84aac4)

running 4 tests
test deletion_received_before_any_source_update_is_preserved ... ok
test partially_known_delete_range_remains_deleted_when_tail_arrives ... ok
test unknown_client_deletion_survives_snapshot_before_source_arrives ... ok
test partially_known_delete_range_survives_snapshot_before_tail_arrives ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/display_mapping.rs (native/crdt/target/debug/deps/display_mapping-5e087ee582e55f45)

running 5 tests
test a_text_holding_an_embed_maps_one_position_per_unit ... ok
test walk_matches_on_every_kind_of_node ... ok
test typing_anywhere_edits_exactly_that_display_position ... ok
test projection_is_unchanged_for_documents_without_embeds ... ok
test walk_matches_the_projection_mapping_on_edited_documents ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.92s

     Running tests/gc_undo_kept.rs (native/crdt/target/debug/deps/gc_undo_kept-d24010c8a818f78c)

running 4 tests
test yrs_collects_kept_children_of_a_collected_type ... ok
test a_snapshot_after_a_peer_deletes_a_kept_items_paragraph_holds_what_the_editor_shows ... ok
test every_update_and_snapshot_replays_into_plain_yrs_with_gc_on_and_off ... ok
test undoing_past_the_collected_paragraph_converges_with_the_peer ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/gc_undo_kept_fuzz.rs (native/crdt/target/debug/deps/gc_undo_kept_fuzz-cc99ef79e409f1c7)

running 2 tests
test three_editors_with_undo_shuffled_and_duplicated ... ok
test three_editors_with_undo_in_causal_order ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 51.40s

     Running tests/insert_into_deleted_parent.rs (native/crdt/target/debug/deps/insert_into_deleted_parent-a1b92e912d932d00)

running 3 tests
test an_undo_whose_neighbours_trace_to_one_item_places_it_as_every_peer_does ... ok
test an_item_undone_into_a_deleted_restored_parent_is_deleted_as_everywhere_else ... ok
test local_inserts_into_a_type_a_peer_deleted_are_deleted_as_everywhere_else ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/minimal_updates.rs (native/crdt/target/debug/deps/minimal_updates-91edc476823f8ba3)

running 4 tests
test a_command_that_changes_nothing_sends_an_empty_update ... ok
test applying_updates_records_nothing_for_the_next_command ... ok
test every_command_kind_converges_through_its_own_update_alone ... ok
test keystroke_update_is_independent_of_the_documents_history ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.46s

     Running tests/projection_delta.rs (native/crdt/target/debug/deps/projection_delta-4a1b268bdebf202b)

running 3 tests
test a_full_projection_resets_the_delta_base ... ok
test typing_reprojects_only_the_block_typed_in ... ok
test deltas_replay_to_the_whole_projection_through_every_kind_of_change ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 22.62s

     Running tests/replica.rs (native/crdt/target/debug/deps/replica-c546771404f95a48)

running 20 tests
test changing_block_preserves_existing_inline_formatting ... ok
test concatenated_log_applies_every_update ... ok
test paragraph_split_keeps_prefix_identity_and_suffix_marks ... ok
test deleting_and_replacing_inline_images_preserves_surrounding_text ... ok
test reads_existing_yjs_fragment_without_rewriting ... ok
test concurrent_insertions_and_own_undo_preserve_peer ... ok
test hard_break_is_inline_and_code_enter_does_not_split_block ... ok
test rich_paste_rule_retains_suffix_as_separate_paragraph ... ok
test rich_paste_preserves_native_marks_and_existing_suffix ... ok
test merged_pending_updates_preserve_dependencies_deletes_and_duplicate_delivery ... ok
test cross_paragraph_replacement_keeps_prefix_id_and_formatted_suffix ... ok
test rich_paste_at_empty_block_keeps_heading_and_list_structure ... ok
test optimistic_newline_typeahead_resolves_new_paragraph_in_source ... ok
test list_item_sink_and_lift_keep_text_and_marks ... ok
test distinct_display_generations_preserve_peer_and_authoritative_undo ... ok
test utf16_edits_preserve_identity_and_marks ... ok
test selection_anchor_tracks_peer_insertion_in_utf16 ... ok
test select_all_replaces_multiple_native_text_nodes_and_terminal_separator ... ok
test toggling_existing_list_changes_type_and_lifts_without_nesting ... ok
test input_rules_transform_and_backspace_restore_typed_prefix ... ok

test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/rule_delta_convergence.rs (native/crdt/target/debug/deps/rule_delta_convergence-6f89d442246ffaa7)

running 1 test
test every_rule_delta_converges_with_remote_apply ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/snapshot.rs (native/crdt/target/debug/deps/snapshot-0908953f0524755b)

running 1 test
test a_snapshot_with_a_parked_update_heals_once_its_dependency_arrives ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/structural_commands.rs (native/crdt/target/debug/deps/structural_commands-f8cb5a921a7e54ef)

running 5 tests
test quote_toggle_lifts_only_selected_block_preserving_prefix_identity_and_marks ... ok
test formatting_does_not_merge_unrelated_existing_adjacent_lists ... ok
test quote_wrap_groups_selected_paragraphs_in_one_container ... ok
test quote_range_can_lift_last_to_first_without_stale_ids ... ok
test adjacent_list_wrapping_merges_only_after_all_targets_are_applied ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests docs_native_crdt

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Compiling version_check v0.9.5
   Compiling serde_core v1.0.229
   Compiling zerocopy v0.8.56
   Compiling proc-macro2 v1.0.107
   Compiling serde v1.0.229
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.47
   Compiling once_cell v1.21.4
   Compiling autocfg v1.5.1
   Compiling cfg-if v1.0.4
   Compiling paste v1.0.15
   Compiling libm v0.2.16
   Compiling downcast-rs v1.2.1
   Compiling indexmap-nostd v0.4.0
   Compiling zmij v1.0.23
   Compiling multi-stash v0.2.0
   Compiling spin v0.9.9
   Compiling serde_json v1.0.151
   Compiling smallvec v1.15.2
   Compiling arrayvec v0.7.8
   Compiling itoa v1.0.18
   Compiling wasmparser-nostd v0.100.2
   Compiling memchr v2.8.3
   Compiling ahash v0.8.12
   Compiling num-traits v0.2.19
   Compiling syn v2.0.119
   Compiling wasmi_core v0.32.3
   Compiling num-derive v0.4.2
   Compiling hashbrown v0.14.5
   Compiling string-interner v0.17.0
   Compiling wasmi_collections v0.32.3
   Compiling wasmi v0.32.3
   Compiling docs-native-host v0.1.0 (/home/ci/work/repos/oficina__docs/wt/main/native/host)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 10.29s
     Running unittests src/lib.rs (native/host/target/debug/deps/docs_native_host-e60fab76ea871d54)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/gc_undo_kept.rs (native/host/target/debug/deps/gc_undo_kept-2b97d1f4eb7f779f)

running 1 test
test a_kept_word_under_a_paragraph_a_peer_deletes_snapshots_whole_in_the_sandbox ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s

     Running tests/sandbox.rs (native/host/target/debug/deps/sandbox-970356a1ca5b85e3)

running 9 tests
test fuel_budget_grows_with_the_instance_but_stays_bounded ... ok
test long_edited_document_opens_and_types ... ignored, needs DOCS_LARGE_DOCUMENT; native/scripts/check-native.sh runs it
test native_boundary_rejects_client_ids_that_v1_decoder_would_truncate ... ok
test failed_replica_cannot_be_reused ... ok
test interpreter_executes_native_crdt_without_host_imports ... ok
test generated_source_delta_applies_to_authority_with_protocol_client_ids ... ok
test selection_anchor_call_does_not_poison_source_interpreter ... ok
test hosts_share_the_compiled_module_but_never_state ... ok
test running_out_of_fuel_is_a_clean_failure_that_discards_the_instance ... ok

test result: ok. 8 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.45s

   Doc-tests docs_native_host

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


added 18 packages in 576ms
{"pages":200,"edits":10000,"blocks":1140,"chars":631067,"bytes":887424}
   Compiling zerocopy v0.8.56
   Compiling version_check v0.9.5
   Compiling serde_core v1.0.229
   Compiling proc-macro2 v1.0.107
   Compiling cfg-if v1.0.4
   Compiling unicode-ident v1.0.24
   Compiling autocfg v1.5.1
   Compiling quote v1.0.47
   Compiling once_cell v1.21.4
   Compiling serde v1.0.229
   Compiling paste v1.0.15
   Compiling libm v0.2.16
   Compiling indexmap-nostd v0.4.0
   Compiling downcast-rs v1.2.1
   Compiling zmij v1.0.23
   Compiling serde_json v1.0.151
   Compiling smallvec v1.15.2
   Compiling arrayvec v0.7.8
   Compiling multi-stash v0.2.0
   Compiling spin v0.9.9
   Compiling itoa v1.0.18
   Compiling wasmparser-nostd v0.100.2
   Compiling memchr v2.8.3
   Compiling ahash v0.8.12
   Compiling num-traits v0.2.19
   Compiling syn v2.0.119
   Compiling wasmi_core v0.32.3
   Compiling num-derive v0.4.2
   Compiling hashbrown v0.14.5
   Compiling string-interner v0.17.0
   Compiling wasmi_collections v0.32.3
   Compiling wasmi v0.32.3
   Compiling docs-native-host v0.1.0 (/home/ci/work/repos/oficina__docs/wt/main/native/host)
    Finished `release` profile [optimized] target(s) in 16.27s
     Running tests/sandbox.rs (native/host/target/release/deps/sandbox-2a6c113ddc8ca496)

running 1 test
test long_edited_document_opens_and_types ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 2.52s

warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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: unused import: `XmlFragment`
 --> src/projection.rs:3:68
  |
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
  |                                                                    ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: function `branch` is never used
  --> src/projection.rs:15:8
   |
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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: unused import: `XmlFragment`
 --> src/projection.rs:3:68
  |
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
  |                                                                    ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: function `branch` is never used
  --> src/projection.rs:15:8
   |
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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: unused import: `XmlFragment`
 --> src/projection.rs:3:68
  |
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
  |                                                                    ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: function `branch` is never used
  --> src/projection.rs:15:8
   |
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

Rule wire replay passed 24 incremental/snapshot comparisons and four exact final bodies.
warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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: unused import: `XmlFragment`
 --> src/projection.rs:3:68
  |
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
  |                                                                    ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: function `branch` is never used
  --> src/projection.rs:15:8
   |
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: variable does not need to be mutable
  --> src/bin/gc_undo_kept_probe.rs:26:9
   |
26 |     let mut record = |stream: &Vec<Vec<u8>>, editor: &Editor| {
   |         ----^^^^^^
   |         |
   |         help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default

GC undo-kept wire replay passed 24 snapshot comparisons, Yjs's two references and the collected kept word.
warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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: unused import: `XmlFragment`
 --> src/projection.rs:3:68
  |
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
  |                                                                    ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: function `branch` is never used
  --> src/projection.rs:15:8
   |
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: variable does not need to be mutable
  --> src/bin/gc_undo_kept_probe.rs:26:9
   |
26 |     let mut record = |stream: &Vec<Vec<u8>>, editor: &Editor| {
   |         ----^^^^^^
   |         |
   |         help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default

GC undo-kept wire: 24 browser states read natively as the editor showed them.
warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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: unused import: `XmlFragment`
 --> src/projection.rs:3:68
  |
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
  |                                                                    ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: function `branch` is never used
  --> src/projection.rs:15:8
   |
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

Update wire replay passed 44 comparisons (19 commands in order, and shuffled with duplicates, gc on and off); keystroke 17 B (browser 18 B, a state-vector diff would be 161 B).
warning: unused import: `ArrayRef`
  --> /home/ci/work/repos/oficina__docs/wt/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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: unused import: `XmlFragment`
 --> src/projection.rs:3:68
  |
3 | use yrs::{Any, Array, ArrayRef, BranchID, Out, ReadTxn, Text, Xml, XmlFragment, XmlFragmentRef, XmlOut, XmlTextRef, ID};
  |                                                                    ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: function `branch` is never used
  --> src/projection.rs:15:8
   |
15 | pub fn branch(node: &XmlOut) -> BranchPtr { node.as_ptr() }
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

Native applied 4 browser transaction updates.
Native checks passed (core-only=1).
diff --git a/docs/superpowers/specs/2026-11-22-native-redesign-design.md b/docs/superpowers/specs/2026-11-22-native-redesign-design.md
index 0a537a4..cc3e507 100644
--- a/docs/superpowers/specs/2026-11-22-native-redesign-design.md
+++ b/docs/superpowers/specs/2026-11-22-native-redesign-design.md
@@ -106,7 +106,7 @@ One contract, confirmed by a half-day spike at the start of S2a. The spike resul
- 248pt wide. It floats 12pt below the toolbar and 12pt from the trailing edge, over the desk.
- 12pt corner radius, 12pt padding, glass (`glassEffect`; an opaque surface under Reduce Transparency).
- A hairline accent rim: accent mixed 70% into the line colour, 30% in dark.
- - Sections sit 14pt apart. Section labels are 11pt, semibold and muted.
+ - Sections sit 16pt apart (14pt in revision 3; S2a moved it to 16, the nearest step of the spacing scale, `--rst-sp-4`, by AGENTS.md's spacing rule of 2026-11-22). Section labels are 11pt, semibold and muted.
- **Sections** (web keys as labels, each an accessibility group named by its label):
- **Style** (`docs.editor.toolbar.group.style`):
- The paragraph style pop-up at full width: Body text and Heading 1–3, each in its own face.
diff --git a/native/apple/Sources/DocsApp/DocsAccountWindow.swift b/native/apple/Sources/DocsApp/DocsAccountWindow.swift
index f0d45b5..2b68590 100644
--- a/native/apple/Sources/DocsApp/DocsAccountWindow.swift
+++ b/native/apple/Sources/DocsApp/DocsAccountWindow.swift
@@ -171,7 +171,10 @@ struct DocsAccountWindow: View {
windows.updateRecents(documents, account: account, client: client)
})
.id(account)
- .onAppear { windows.transports[account] = oficina.transport(for: account) }
+ .onAppear {
+ windows.transports[account] = oficina.transport(for: account)
+ windows.teamNames[account] = state.team.name
+ }
.safeAreaInset(edge: .bottom, spacing: 0) { passkeyNudge }
.sheet(isPresented: $pickingTeam) { teamPicker(state) }
#else
@@ -304,6 +307,8 @@ struct DocsAccountWindow: View {
windows.updateRecents(documents, account: account, client: client)
})
.id(account)
+ .onAppear { windows.teamNames[account] = connection.accounts.first { $0.id == account }?.name }
+ .onChange(of: connection.accounts) { _, accounts in windows.teamNames[account] = accounts.first { $0.id == account }?.name }
}
#else
DocsWorkspace(client: client, accountID: connection.activeAccountID, transport: transport(for: connection.activeAccountID), accounts: connection.showAccounts, signOut: connection.signOut)
diff --git a/native/apple/Sources/DocsApp/DocsApp.swift b/native/apple/Sources/DocsApp/DocsApp.swift
index 8941857..4c37412 100644
--- a/native/apple/Sources/DocsApp/DocsApp.swift
+++ b/native/apple/Sources/DocsApp/DocsApp.swift
@@ -58,7 +58,7 @@ import SwiftUI
#endif
}
WindowGroup(docsMacString("Docs"), id: "document", for: UUID.self) { $id in
- DocsDocumentWindow(windows: windows, id: id)
+ DocsDocumentWindow(windows: windows, oficina: oficina, id: id)
}
.defaultSize(width: 1120, height: 820)
.restorationBehavior(.disabled)
diff --git a/native/apple/Sources/DocsApp/DocsDocumentWindow.swift b/native/apple/Sources/DocsApp/DocsDocumentWindow.swift
index b5ce9e2..bf6377a 100644
--- a/native/apple/Sources/DocsApp/DocsDocumentWindow.swift
+++ b/native/apple/Sources/DocsApp/DocsDocumentWindow.swift
@@ -4,11 +4,18 @@ import SwiftUI
struct DocsDocumentWindow: View {
let windows: DocsWindows
+ /// For the subtitle's team, derived per window (spec D7).
+ @ObservedObject var oficina: DocsOficinaSession
let id: UUID?
@Environment(\.openWindow) private var openWindow
var body: some View {
if let entry = windows.entries.first(where: { $0.id == id }) {
- DocsWorkspace(client: entry.client, accountID: entry.account, transport: windows.transports[entry.account], signOut: {}, documentID: entry.document, newDocument: entry.isDraft, documentChanged: { document, title in windows.attach(entry.id, document: document, title: title) })
+ DocsWorkspace(client: entry.client, accountID: entry.account, transport: windows.transports[entry.account], signOut: {}, documentID: entry.document, newDocument: entry.isDraft, documentChanged: { document, title in windows.attach(entry.id, document: document, title: title) },
+ openDocument: { document, title in
+ // Open a document… (⌘K) opens or focuses that document's window.
+ let id = windows.reserve(account: entry.account, document: document, title: title, client: entry.client)
+ openWindow(id: "document", value: id)
+ }, team: Self.team(for: entry.account, oficina: oficina, windows: windows))
.id(entry.id)
.focusedSceneValue(\.docsWindowAccount, entry.account)
.onAppear { windows.setOpen(entry.id, true) }
@@ -19,5 +26,12 @@ struct DocsDocumentWindow: View {
}
}
}
+ /// An Oficina ID team's name from the identity's own record, so a
+ /// renamed team or a window opened before the home window shows the
+ /// right one; a server account's from the home window's account list.
+ @MainActor static func team(for account: String, oficina: DocsOficinaSession, windows: DocsWindows) -> String? {
+ if DocsOficinaSession.isOficinaAccount(account) { return oficina.teamName(forAccount: account) ?? windows.teamNames[account] }
+ return windows.teamNames[account]
+ }
}
#endif
diff --git a/native/apple/Sources/DocsApp/DocsWindowCommands.swift b/native/apple/Sources/DocsApp/DocsWindowCommands.swift
index 70a1197..c70c2d1 100644
--- a/native/apple/Sources/DocsApp/DocsWindowCommands.swift
+++ b/native/apple/Sources/DocsApp/DocsWindowCommands.swift
@@ -40,6 +40,7 @@ struct DocsWindowCommands: Commands {
openWindow(id: "home")
}
}.keyboardShortcut("n")
+ DocsOpenDocumentMenuItem()
Menu(docsMacString("Recent")) {
ForEach(windows.entries.filter { $0.account == (account ?? windows.activeAccount) }.prefix(20)) { entry in
Button(entry.title) {
diff --git a/native/apple/Sources/DocsApp/DocsWindows.swift b/native/apple/Sources/DocsApp/DocsWindows.swift
index 4a004f8..f533120 100644
--- a/native/apple/Sources/DocsApp/DocsWindows.swift
+++ b/native/apple/Sources/DocsApp/DocsWindows.swift
@@ -31,6 +31,9 @@ import SwiftUI
/// rather than the one it opened with. Server accounts have none: their
/// windows keep the client they were opened with, as before.
var transports: [String: @MainActor () -> NativeTransport?] = [:]
+ /// Each account's team name, for a document window's subtitle (spec
+ /// D7): the Oficina ID team's name, or the server account's.
+ var teamNames: [String: String] = [:]
func reserve(account: String, document: String, title: String, client: NativeHTTP) -> UUID {
if let index = entries.firstIndex(where: { $0.account == account && $0.client.origin == client.origin && $0.document == document }) {
var entry = entries.remove(at: index)
diff --git a/native/apple/Sources/DocsKit/DocsDesk.swift b/native/apple/Sources/DocsKit/DocsDesk.swift
new file mode 100644
index 0000000..9c255be
--- /dev/null
+++ b/native/apple/Sources/DocsKit/DocsDesk.swift
@@ -0,0 +1,147 @@
+import Foundation
+#if os(macOS)
+import AppKit
+#endif
+
+/// Where the page sits on the desk, the web's `show.html` rule in window
+/// points (spec §1, "Page centring"). Pure arithmetic, so the six widths and
+/// the 1,108pt boundary are a unit test.
+///
+/// The trailing desk padding is `E = clamp(16, 16 + P + 2R − W, R)`, where
+/// `R` is the floating inspector's reserve (248 + 12 + 16) and `P` the page's
+/// width in window points; the page is centred in the band `[16, W − E]`.
+/// When the band is narrower than the page its leading edge stays at 16 and
+/// it runs under the inspector: the page never shrinks or reflows.
+struct DocsDeskLayout: Equatable, Sendable {
+ static let padding: CGFloat = 16
+ static let inspectorWidth: CGFloat = 248
+ /// The inspector's gap from the toolbar and from the window's edge.
+ static let inspectorInset: CGFloat = 12
+ static var reserve: CGFloat { inspectorWidth + inspectorInset + padding }
+ /// The paper's width in its own (unmagnified) points.
+ static let paperWidth: CGFloat = 612
+
+ /// Which side the inspector floats on, nil while it is hidden. It is the
+ /// trailing side: the right, or the left in a right-to-left language.
+ enum Side: Equatable, Sendable { case right, left }
+
+ /// `E`, the padding on the inspector's side.
+ static func inspectorPadding(width: CGFloat, page: CGFloat, inspector: Bool) -> CGFloat {
+ guard inspector else { return padding }
+ return min(max(padding, padding + page + 2 * reserve - width), reserve)
+ }
+
+ /// The page's distance from the inspector-free (leading) edge.
+ static func leadingEdge(width: CGFloat, page: CGFloat, inspector: Bool) -> CGFloat {
+ let band = width - padding - inspectorPadding(width: width, page: page, inspector: inspector)
+ return padding + max(0, (band - page) / 2)
+ }
+
+ /// The page's left edge in window points, for either side.
+ static func pageX(width: CGFloat, page: CGFloat, inspector side: Side?) -> CGFloat {
+ let leading = leadingEdge(width: width, page: page, inspector: side != nil)
+ guard side == .left else { return leading }
+ // Mirrored: the leading edge is the right. A page wider than the
+ // window still starts at the left padding and scrolls to the right.
+ return max(padding, width - leading - page)
+ }
+}
+
+#if os(macOS)
+/// The scroll view's document view: it draws the desk and holds the page
+/// (`DocsPagedTextView`, a fixed paper band) as its only subview, at
+/// `x = pageX / m`. Toggling the inspector or resizing the window moves that
+/// one frame origin, so the page slides and the text never reflows
+/// (spec §1, "Moving the page never relayouts the text").
+@MainActor final class DocsDeskView: NSView {
+ let page: NSView
+ var inspector: DocsDeskLayout.Side? {
+ didSet { if oldValue != inspector { arrange() } }
+ }
+ private var observers: [NSObjectProtocol] = []
+
+ init(page: NSView) {
+ self.page = page
+ super.init(frame: page.frame)
+ autoresizingMask = [.width]
+ page.autoresizingMask = []
+ addSubview(page)
+ page.postsFrameChangedNotifications = true
+ observers.append(NotificationCenter.default.addObserver(forName: NSView.frameDidChangeNotification, object: page, queue: nil) { [weak self] _ in
+ MainActor.assumeIsolated { self?.arrange() }
+ })
+ }
+ required init?(coder: NSCoder) { fatalError("init(coder:) is unavailable") }
+ isolated deinit { observers.forEach(NotificationCenter.default.removeObserver) }
+
+ override var isFlipped: Bool { true }
+ override var isOpaque: Bool { true }
+
+ override func viewDidMoveToSuperview() {
+ super.viewDidMoveToSuperview()
+ guard let clip = superview as? NSClipView else { return }
+ clip.postsBoundsChangedNotifications = true
+ clip.postsFrameChangedNotifications = true
+ for name in [NSView.boundsDidChangeNotification, NSView.frameDidChangeNotification] {
+ observers.append(NotificationCenter.default.addObserver(forName: name, object: clip, queue: nil) { [weak self] _ in
+ MainActor.assumeIsolated { self?.arrange() }
+ })
+ }
+ arrange()
+ }
+
+ /// The scroll view's magnification: document units to window points.
+ private var magnification: CGFloat { enclosingScrollView?.magnification ?? 1 }
+
+ /// Sets the page's origin and the desk's size from the rule. O(1).
+ func arrange() {
+ guard let clip = superview as? NSClipView else { return }
+ let m = magnification
+ let width = clip.bounds.width * m
+ let pageWidth = page.frame.width * m
+ let x = DocsDeskLayout.pageX(width: width, page: pageWidth, inspector: inspector) / m
+ let origin = CGPoint(x: x, y: 0)
+ if page.frame.origin != origin { page.setFrameOrigin(origin) }
+ let size = CGSize(width: max(clip.bounds.width, x + page.frame.width + DocsDeskLayout.padding / m), height: page.frame.height)
+ if abs(frame.width - size.width) > 0.01 || abs(frame.height - size.height) > 0.01 { setFrameSize(size) }
+ }
+
+ override func resize(withOldSuperviewSize oldSize: NSSize) {
+ super.resize(withOldSuperviewSize: oldSize)
+ arrange()
+ }
+
+ override func draw(_ dirtyRect: NSRect) {
+ NSColor.windowBackgroundColor.setFill()
+ dirtyRect.fill()
+ }
+
+ /// A click on the desk beside the page goes to the page, as it did when
+ /// the text view spanned the window.
+ override func mouseDown(with event: NSEvent) { page.mouseDown(with: event) }
+}
+#endif
+
+#if os(macOS)
+extension NativeDocumentTextView {
+ /// The side the floating inspector covers, for the desk's centring.
+ func inspectorSide(_ side: DocsDeskLayout.Side?) -> NativeDocumentTextView {
+ var view = self
+ view.inspector = side
+ return view
+ }
+}
+#endif
+
+/// Fiesta's spacing scale in points (`--rst-sp-1` … `--rst-sp-6`: 4, 8, 12,
+/// 16, 24, 40), so the native chrome keeps the web's rhythm (AGENTS.md,
+/// "Spacing", Paul 2026-11-22: no ad-hoc spacing). Anything off the scale
+/// says why where it is written (`spacing-allow:`).
+enum DocsSpacing {
+ static let sp1: CGFloat = 4
+ static let sp2: CGFloat = 8
+ static let sp3: CGFloat = 12
+ static let sp4: CGFloat = 16
+ static let sp5: CGFloat = 24
+ static let sp6: CGFloat = 40
+}
diff --git a/native/apple/Sources/DocsKit/DocsDocumentHeader.swift b/native/apple/Sources/DocsKit/DocsDocumentHeader.swift
new file mode 100644
index 0000000..f99b013
--- /dev/null
+++ b/native/apple/Sources/DocsKit/DocsDocumentHeader.swift
@@ -0,0 +1,360 @@
+#if os(macOS)
+import AppKit
+import RastrilloApple
+import RastrilloNative
+import SwiftUI
+
+/// The app-wide Format inspector state (spec D1): open by default, one value
+/// for every window, remembered across launches.
+enum DocsInspectorState {
+ static let key = "docs.inspector.open"
+ static let defaultOpen = true
+}
+
+/// Docs' own title area at the toolbar's leading edge (spec §1, header
+/// contract): the document's title in 15pt semibold, and under it the §6
+/// subtitle. The system title is hidden but still set, so the Window menu,
+/// Mission Control, window tabs and VoiceOver's window name are the title.
+///
+/// Its own view, reading the model's title, access and sync status itself,
+/// so none of those re-evaluates the body that hosts the text view.
+@MainActor struct DocsTitleArea: View {
+ let model: DocsModel
+ let team: String?
+ @Binding var renaming: Bool
+ let beginRename: () -> Void
+ /// Commits the rename; false when the model refused it.
+ let finishRename: () -> Bool
+
+ var body: some View {
+ // spacing-allow: the subtitle sits on the title's descender, as a
+ // window title and subtitle do; a step of the scale would split them.
+ VStack(alignment: .leading, spacing: 1) {
+ title
+ DocsSubtitleView(model: model, team: team)
+ }
+ .frame(minWidth: 120, maxWidth: 520, alignment: .leading)
+ .fixedSize(horizontal: false, vertical: true)
+ .accessibilityElement(children: .contain)
+ .accessibilityIdentifier("docs.document.header")
+ }
+
+ /// A reader never gets an editable field, whatever `renaming` says.
+ static func showsField(renaming: Bool, access: DocsAccess) -> Bool { renaming && access == .writable }
+
+ /// Esc: the title as it was.
+ private func cancelRename() { model.renameInput = nil; renaming = false }
+
+ @ViewBuilder private var title: some View {
+ if Self.showsField(renaming: renaming, access: model.documentAccess) {
+ // An AppKit field: SwiftUI's focus does not reach into a toolbar
+ // item's hosting view, so a TextField there appears without the
+ // keyboard and never sees Esc. This one takes focus as it
+ // appears, commits on Return or focus loss, and reverts on Esc.
+ DocsRenameField(text: model.renameInput ?? model.detail?.title ?? "",
+ placeholder: String(localized: "docs.list.create.placeholder", bundle: DocsResources.bundle),
+ changed: { model.renameInput = $0 }, commit: finishRename, cancel: cancelRename)
+ .frame(minWidth: 180, maxWidth: 480)
+ // Write access ending mid-rename puts the title back.
+ .onChange(of: model.documentAccess) { _, access in if access != .writable { cancelRename() } }
+ } else {
+ let canWrite = model.detail?.can_write == true
+ Text(verbatim: model.detail?.title ?? " ")
+ .font(.system(size: 15, weight: .semibold))
+ .foregroundStyle(OficinaPalette.text)
+ .lineLimit(1).truncationMode(.tail)
+ .accessibilityAddTraits(.isHeader)
+ .accessibilityIdentifier("docs.document.title")
+ .onTapGesture(count: 2) { if canWrite { beginRename() } }
+ .contextMenu {
+ if canWrite {
+ Button { beginRename() } label: { Text("docs.document.rename", bundle: DocsResources.bundle) }
+ .keyboardShortcut("r", modifiers: [.command, .shift])
+ }
+ }
+ .accessibilityActions {
+ if canWrite {
+ Button { beginRename() } label: { Text("docs.document.rename", bundle: DocsResources.bundle) }
+ }
+ }
+ }
+ }
+}
+
+/// The header's trailing controls, 8pt apart (spec §1): the undo/redo pill
+/// and the Format toggle for writers, then Share… for owners and members.
+/// A reader gets none of them.
+@MainActor struct DocsHeaderControls: View {
+ enum Part { case history, format, share }
+ let model: DocsModel
+ @Binding var inspectorOpen: Bool
+ var part: Part
+ let share: () -> Void
+
+ var body: some View {
+ let canWrite = model.documentAccess == .writable
+ let canShare = model.detail?.can_share == true && !model.isDraft && model.documentAccess != .unavailable
+ switch part {
+ case .history:
+ if canWrite { DocsUndoRedoPill(model: model).fixedSize() }
+ case .format:
+ if canWrite {
+ Toggle(isOn: $inspectorOpen) {
+ Label { Text("docs.editor.inspector.toggle", bundle: DocsResources.bundle) } icon: { Image(systemName: "pencil") }
+ }
+ .toggleStyle(.button)
+ .buttonStyle(DocsPillStyle(kind: inspectorOpen ? .toggledOn : .quiet))
+ .help(Text(inspectorOpen ? "native.format.hide" : "native.format.show", bundle: DocsResources.bundle))
+ .accessibilityIdentifier("docs.format.toggle")
+ }
+ case .share:
+ if canShare {
+ Button(action: share) { Text("docs.share.action", bundle: DocsResources.bundle) }
+ .buttonStyle(DocsPillStyle(kind: .filled))
+ .accessibilityIdentifier("docs.share")
+ }
+ }
+ }
+}
+
+/// Undo and redo in one pill, a hairline between them, each enabled from
+/// the projection's `canUndo`/`canRedo` (spec §1, item 1).
+@MainActor struct DocsUndoRedoPill: View {
+ let model: DocsModel
+ var body: some View {
+ // The observed history, never the projection (S1a unobserves it).
+ let history = model.history
+ HStack(spacing: 0) {
+ button("docs.editor.toolbar.undo", icon: "arrow.uturn.backward", op: "undo", enabled: history.canUndo)
+ Rectangle().fill(OficinaPalette.line).frame(width: 1, height: DocsSpacing.sp3)
+ button("docs.editor.toolbar.redo", icon: "arrow.uturn.forward", op: "redo", enabled: history.canRedo)
+ }
+ .background(Capsule().fill(OficinaPalette.sunk))
+ .overlay(Capsule().stroke(OficinaPalette.line, lineWidth: 1))
+ .accessibilityElement(children: .contain)
+ .accessibilityLabel(Text("docs.editor.toolbar.history", bundle: DocsResources.bundle))
+ }
+ private func button(_ key: String, icon: String, op: String, enabled: Bool) -> some View {
+ Button {
+ // Undo needs no rendered content: only the model's own check.
+ DocumentCommands(model: model, content: NSAttributedString()).perform(op)
+ } label: {
+ Image(systemName: icon)
+ .font(.system(size: 13, weight: .semibold))
+ .flipsForRightToLeftLayoutDirection(true)
+ .frame(width: 30, height: 28)
+ .contentShape(Rectangle())
+ }
+ .buttonStyle(.plain)
+ .foregroundStyle(OficinaPalette.text)
+ .opacity(enabled ? 1 : 0.35)
+ .disabled(!enabled)
+ .help(Text(LocalizedStringKey(key), bundle: DocsResources.bundle))
+ .accessibilityLabel(Text(LocalizedStringKey(key), bundle: DocsResources.bundle))
+ .accessibilityIdentifier("docs." + op)
+ }
+}
+
+/// The header's pills (the web's I2 header): quiet, toggled on (accent-soft
+/// with accent text) and the one filled accent pill. 28pt tall; they grow
+/// with their label rather than truncate it (spec §9, long languages).
+struct DocsPillStyle: ButtonStyle {
+ enum Kind { case quiet, toggledOn, filled }
+ let kind: Kind
+ @Environment(\.isEnabled) private var isEnabled
+ func makeBody(configuration: Configuration) -> some View {
+ let accent = OficinaPalette.accent(.docs)
+ configuration.label
+ .labelStyle(.titleAndIcon)
+ .font(.system(size: 13, weight: .semibold))
+ .lineLimit(1)
+ .fixedSize()
+ .padding(.horizontal, DocsSpacing.sp3)
+ .frame(height: 28)
+ .foregroundStyle(kind == .filled ? OficinaPalette.onAccent : kind == .toggledOn ? accent : OficinaPalette.text)
+ .background {
+ switch kind {
+ case .filled: Capsule().fill(accent)
+ case .toggledOn: Capsule().fill(OficinaPalette.accentSoft(.docs)).overlay(Capsule().stroke(accent.opacity(0.3), lineWidth: 1))
+ case .quiet: Capsule().fill(OficinaPalette.sunk).overlay(Capsule().stroke(OficinaPalette.line, lineWidth: 1))
+ }
+ }
+ .opacity(configuration.isPressed ? 0.8 : isEnabled ? 1 : 0.5)
+ .contentShape(Capsule())
+ }
+}
+#endif
+
+#if os(macOS)
+/// The window's callouts under the header (spec §6, banners): No longer
+/// available (row 1) with Close and, with changes unsent, Discard changes;
+/// and today's `errorKey` text with Try again and Discard changes. Their own
+/// view, so the text view's host does not read either.
+@MainActor struct DocsDocumentCallouts: View {
+ let model: DocsModel
+ @Environment(\.locale) private var locale
+ let discard: () -> Void
+ /// Close (row 1): through the window's own close, so `DocsCloseGuard`
+ /// still asks about unsent changes. nil uses the window this view is in.
+ var close: (() -> Void)? = nil
+ @State private var closer = DocsWindowCloser()
+ /// The floating inspector shows: the callouts keep clear of it, centred
+ /// in the desk beside it rather than under it.
+ var inspectorShown = false
+ /// The account flow, as Settings' Sign in… opens it (the home window).
+ var signIn: () -> Void = {}
+ var body: some View {
+ VStack(spacing: DocsSpacing.sp2) {
+ // §6 rows 5 and 6: the session ended. Typing still reaches the
+ // outbox; signing in sends it.
+ if model.documentAccess != .unavailable, case .needsSignIn(let pending) = model.syncStatus {
+ let sync = NativeSyncStrings.kit
+ callout(Text(verbatim: pending > 0 ? sync.needsSignIn(pending) : DocsStrings(locale: locale)("native.subtitle.signedOut")), negative: true) {
+ Button { signIn() } label: { Text(verbatim: sync.signIn) }
+ }
+ }
+ if model.documentAccess == .unavailable {
+ callout(Text("native.unavailable.body", bundle: DocsResources.bundle), negative: true) {
+ Button { if let close { close() } else { closer.close() } } label: { Text("native.close", bundle: DocsResources.bundle) }
+ if model.hasUnsavedChanges {
+ Button(role: .destructive) { discard() } label: { Text("native.discard.action", bundle: DocsResources.bundle) }
+ }
+ }
+ } else if let key = model.errorKey {
+ callout(Text(LocalizedStringKey(key), bundle: DocsResources.bundle), negative: false) {
+ Button { Task { await model.retry() } } label: { Text("native.retry", bundle: DocsResources.bundle) }
+ if model.hasUnsavedChanges {
+ Button(role: .destructive) { discard() } label: { Text("native.discard.action", bundle: DocsResources.bundle) }
+ }
+ }
+ }
+ }
+ .padding(.top, DocsSpacing.sp3)
+ .frame(maxWidth: 560)
+ .frame(maxWidth: .infinity)
+ .padding(.leading, DocsDeskLayout.padding)
+ .padding(.trailing, inspectorShown ? DocsDeskLayout.reserve : DocsDeskLayout.padding)
+ .background { DocsWindowReader(closer: closer).frame(width: 0, height: 0) }
+ }
+ private func callout<Actions: View>(_ text: Text, negative: Bool, @ViewBuilder actions: () -> Actions) -> some View {
+ HStack(spacing: DocsSpacing.sp3) {
+ text.font(.callout).foregroundStyle(negative ? OficinaPalette.negative : OficinaPalette.text)
+ .fixedSize(horizontal: false, vertical: true)
+ Spacer(minLength: 8)
+ actions().controlSize(.small)
+ }
+ .padding(.horizontal, DocsSpacing.sp3).padding(.vertical, DocsSpacing.sp2)
+ .background(RoundedRectangle(cornerRadius: 10).fill(negative ? OficinaPalette.negativeSoft : OficinaPalette.surface))
+ .overlay(RoundedRectangle(cornerRadius: 10).strokeBorder(OficinaPalette.line, lineWidth: 1))
+ .shadow(color: .black.opacity(0.08), radius: 8, y: 3)
+ .accessibilityElement(children: .contain)
+ .accessibilityIdentifier(negative ? "docs.callout.negative" : "docs.callout.error")
+ }
+}
+#endif
+
+#if os(macOS)
+/// Closes the window a view is in the way the close button does
+/// (`performClose`), so the window's delegate (`DocsCloseGuard`) decides:
+/// unsent changes are asked about, never dropped.
+@MainActor final class DocsWindowCloser {
+ weak var window: NSWindow?
+ func close() { window?.performClose(nil) }
+}
+
+struct DocsWindowReader: NSViewRepresentable {
+ let closer: DocsWindowCloser
+ func makeNSView(context: Context) -> ReaderView { let view = ReaderView(); view.closer = closer; return view }
+ func updateNSView(_ view: ReaderView, context: Context) { view.closer = closer; closer.window = view.window }
+ final class ReaderView: NSView {
+ weak var closer: DocsWindowCloser?
+ override func viewDidMoveToWindow() { super.viewDidMoveToWindow(); closer?.window = window }
+ }
+}
+#endif
+
+/// One rename's commit rules (Fable on #169, finding 2). It is finished
+/// only by a commit the model accepts, or by putting the title back:
+/// - Return: commit; refused, the field stays with the error shown, and a
+/// later Return or focus loss tries again.
+/// - Focus loss: commit; refused, the title goes back as it was (the error
+/// stays shown), so no field is left open behind the person's back.
+/// - Esc: the title as it was.
+@MainActor final class DocsRenameSession {
+ enum Outcome: Equatable { case committed, keepEditing, reverted, finished }
+ private let commit: () -> Bool
+ private let cancel: () -> Void
+ private(set) var isFinished = false
+ init(commit: @escaping () -> Bool, cancel: @escaping () -> Void) { self.commit = commit; self.cancel = cancel }
+ func returnPressed() -> Outcome {
+ guard !isFinished else { return .finished }
+ if commit() { isFinished = true; return .committed }
+ return .keepEditing
+ }
+ func focusLost() -> Outcome {
+ guard !isFinished else { return .finished }
+ isFinished = true
+ if commit() { return .committed }
+ cancel()
+ return .reverted
+ }
+ func escape() {
+ guard !isFinished else { return }
+ isFinished = true
+ cancel()
+ }
+}
+
+#if os(macOS)
+/// The title's rename field (spec §1, "Rename in place"): Return or focus
+/// loss commits through `model.commitRename()`, Esc reverts.
+struct DocsRenameField: NSViewRepresentable {
+ let text: String
+ let placeholder: String
+ let changed: (String) -> Void
+ let commit: () -> Bool
+ let cancel: () -> Void
+ func makeCoordinator() -> Coordinator { Coordinator(self) }
+ func makeNSView(context: Context) -> NSTextField {
+ let field = FocusingField(string: text)
+ field.placeholderString = placeholder
+ field.isBordered = false
+ field.drawsBackground = false
+ field.focusRingType = .none
+ field.font = .systemFont(ofSize: 15, weight: .semibold)
+ field.lineBreakMode = .byTruncatingTail
+ field.cell?.isScrollable = true
+ field.delegate = context.coordinator
+ field.setAccessibilityIdentifier("docs.document.title")
+ field.setAccessibilityLabel(String(localized: "docs.document.rename", bundle: DocsResources.bundle))
+ return field
+ }
+ func updateNSView(_ field: NSTextField, context: Context) { context.coordinator.parent = self }
+ @MainActor final class Coordinator: NSObject, NSTextFieldDelegate {
+ var parent: DocsRenameField
+ private lazy var session = DocsRenameSession(commit: { [unowned self] in self.parent.commit() }, cancel: { [unowned self] in self.parent.cancel() })
+ init(_ parent: DocsRenameField) { self.parent = parent }
+ func controlTextDidChange(_ note: Notification) {
+ if let field = note.object as? NSTextField { parent.changed(field.stringValue) }
+ }
+ func control(_ control: NSControl, textView: NSTextView, doCommandBy selector: Selector) -> Bool {
+ if selector == #selector(NSResponder.cancelOperation(_:)) { session.escape(); return true }
+ if selector == #selector(NSResponder.insertNewline(_:)) { _ = session.returnPressed(); return true }
+ return false
+ }
+ func controlTextDidEndEditing(_ note: Notification) { _ = session.focusLost() }
+ }
+ /// Takes the keyboard as soon as it is in a window, with the title selected.
+ final class FocusingField: NSTextField {
+ override func viewDidMoveToWindow() {
+ super.viewDidMoveToWindow()
+ guard let window else { return }
+ DispatchQueue.main.async { [weak self] in
+ guard let self, self.window === window else { return }
+ window.makeFirstResponder(self)
+ self.currentEditor()?.selectAll(nil)
+ }
+ }
+ }
+}
+#endif
diff --git a/native/apple/Sources/DocsKit/DocsDocumentMenu.swift b/native/apple/Sources/DocsKit/DocsDocumentMenu.swift
index 728a9b8..939e546 100644
--- a/native/apple/Sources/DocsKit/DocsDocumentMenu.swift
+++ b/native/apple/Sources/DocsKit/DocsDocumentMenu.swift
@@ -1,22 +1,38 @@
#if os(macOS)
import SwiftUI
+/// File ▸ Open a document… (⌘K): the jump palette as a sheet over the
+/// focused document window, or over the home window (spec §1, menus).
+public struct DocsOpenDocumentMenuItem: View {
+ @FocusedValue(\.docsJump) private var jump
+ public init() {}
+ public var body: some View {
+ Button { jump?.wrappedValue = true } label: { Text("docs.editor.menu.file.open", bundle: DocsResources.bundle) }
+ .keyboardShortcut("k")
+ .disabled(jump == nil)
+ }
+}
+extension FocusedValues { @Entry var docsJump: Binding<Bool>? }
+
public struct DocsDocumentMenu: View {
@FocusedValue(\.docsEditor) private var editor
public init() {}
public var body: some View {
Group {
- Button { editor?.rename() } label: { Text("docs.document.rename", bundle: DocsResources.bundle) }
- .keyboardShortcut("r", modifiers: [.command, .shift]).disabled(editor?.model.detail?.can_write != true)
+ // Absent, not disabled, for a reader (spec §1, reader mode).
+ if editor == nil || editor?.model.documentAccess == .writable {
+ Button { editor?.rename() } label: { Text("docs.document.rename", bundle: DocsResources.bundle) }
+ .keyboardShortcut("r", modifiers: [.command, .shift]).disabled(editor?.model.documentAccess != .writable)
+ }
Button(docsMacString("Save")) { if let editor { Task { _ = await editor.model.saveAll() } } }
.keyboardShortcut("s").disabled(editor == nil)
Menu(docsMacString("Export")) {
Button(docsMacString("PDF…")) { editor?.exportRequest.wrappedValue = "pdf" }
Button(docsMacString("Markdown…")) { editor?.exportRequest.wrappedValue = "markdown" }
}.disabled(editor == nil || editor?.model.isDraft == true)
- Button(docsMacString("Share…")) {
- if let editor { Task { if await editor.model.saveAll() { editor.sharing.wrappedValue = true } } }
- }.disabled(editor?.model.detail?.can_share != true)
+ Button { if let editor { Task { if await editor.model.saveAll() { editor.sharing.wrappedValue = true } } } } label: {
+ Text("docs.share.action", bundle: DocsResources.bundle)
+ }.disabled(editor?.model.detail?.can_share != true || editor?.model.isDraft == true || editor?.model.documentAccess == .unavailable)
Divider()
diff --git a/native/apple/Sources/DocsKit/DocsEditorCommands.swift b/native/apple/Sources/DocsKit/DocsEditorCommands.swift
index 77a1c83..5899904 100644
--- a/native/apple/Sources/DocsKit/DocsEditorCommands.swift
+++ b/native/apple/Sources/DocsKit/DocsEditorCommands.swift
@@ -2,58 +2,93 @@
import AppKit
import SwiftUI
+/// The Mac's Format, View and Tools menus (spec §1, "Menus and shortcuts"),
+/// labelled with the web's keys where one exists.
public struct DocsEditorCommands: Commands {
@FocusedValue(\.docsEditor) private var editor
+ /// The floating inspector's app-wide state (spec D1): ⌥⌘I flips it for
+ /// every window at once.
+ @AppStorage(DocsInspectorState.key) private var inspectorOpen = DocsInspectorState.defaultOpen
public init() {}
+
+ private static let sizes = [8, 9, 10, 11, 12, 14, 18, 24, 36, 48, 72]
+ private func text(_ key: String) -> Text { Text(LocalizedStringKey(key), bundle: DocsResources.bundle) }
+
public var body: some Commands {
CommandGroup(replacing: .printItem) {}
- CommandMenu(docsMacString("Format")) {
+ CommandMenu(text("docs.editor.menu.format")) {
Group {
- Button(docsMacString("Bold")) { editor?.actions?.perform("bold") }.keyboardShortcut("b")
- Button(docsMacString("Italic")) { editor?.actions?.perform("italic") }.keyboardShortcut("i")
- Button(docsMacString("Inline code")) { editor?.actions?.perform("code") }
- Menu(docsMacString("Paragraph style")) {
- Button(docsMacString("Normal")) { editor?.actions?.block("paragraph") }
- ForEach(1...6, id: \.self) { level in
- Button(String(format: docsMacString("Heading %d"), level)) { editor?.actions?.block("heading", level: level) }
+ Button { editor?.actions?.perform("bold") } label: { text("docs.editor.toolbar.bold") }.keyboardShortcut("b")
+ Button { editor?.actions?.perform("italic") } label: { text("docs.editor.toolbar.italic") }.keyboardShortcut("i")
+ Button { editor?.actions?.perform("code") } label: { text("docs.editor.toolbar.code") }
+ Divider()
+ // Body text and Heading 1–3, as the web: Headings 4–6 still
+ // render and edit, but are not offered.
+ Menu {
+ Button { editor?.actions?.block("paragraph") } label: { text("docs.editor.toolbar.block.paragraph") }
+ ForEach(1...3, id: \.self) { level in
+ Button { editor?.actions?.block("heading", level: level) } label: { text(EditorToolbar.headingKey(level)) }
}
- Button(docsMacString("Bullet list")) { editor?.actions?.block("bullet_list") }
- Button(docsMacString("Numbered list")) { editor?.actions?.block("ordered_list") }
- Button(docsMacString("Block quote")) { editor?.actions?.block("blockquote") }
- }
- Menu(docsMacString("Font")) {
+ } label: { text("docs.editor.toolbar.block") }
+ Button { editor?.actions?.block("bullet_list") } label: { text("docs.editor.toolbar.bulletlist") }
+ Button { editor?.actions?.block("ordered_list") } label: { text("docs.editor.toolbar.orderedlist") }
+ Button { editor?.actions?.block("blockquote") } label: { text("docs.editor.toolbar.quote") }
+ Divider()
+ Menu {
// Each family's name in its own face; SwiftUI carries the
// font into the menu item's attributed title.
ForEach(DocsFontPicker.entries) { entry in
Button { editor?.actions?.setFont(entry.key) } label: { DocsFontPicker.label(entry) }
}
- }
- Menu(docsMacString("Size")) {
- ForEach([8, 9, 10, 11, 12, 14, 18, 24, 36, 48, 72], id: \.self) { size in
- Button(size.formatted()) { editor?.actions?.format("size_\(size)", exclusive: [8,9,10,11,12,14,18,24,36,48,72].map { "size_\($0)" } + ["size_sm", "size_lg", "size_xl"]) }
+ } label: { text("docs.editor.toolbar.font") }
+ Menu {
+ ForEach(Self.sizes, id: \.self) { size in
+ Button(size.formatted()) { editor?.actions?.format("size_" + String(size), exclusive: Self.sizes.map { "size_" + String($0) } + ["size_sm", "size_lg", "size_xl"]) }
}
+ } label: { text("docs.editor.toolbar.size") }
+ Divider()
+ ForEach(["left", "center", "right"], id: \.self) { value in
+ Button { editor?.actions?.blockAttribute("align", value: value == "left" ? nil : value) } label: { text("docs.editor.toolbar.align." + value) }
}
- Menu(docsMacString("Alignment")) {
- ForEach(["left", "center", "right"], id: \.self) { value in
- Button(String(localized: String.LocalizationValue("docs.editor.toolbar.align." + value), bundle: DocsResources.bundle)) { editor?.actions?.blockAttribute("align", value: value == "left" ? nil : value) }
- }
- }
- Button(docsMacString("Indent")) { editor?.actions?.perform("indent") }
- Button(docsMacString("Outdent")) { editor?.actions?.perform("outdent") }
- Button(docsMacString("Clear formatting")) { editor?.actions?.perform("clear-format") }
+ Divider()
+ Button { editor?.actions?.perform("indent") } label: { text("docs.editor.menu.format.indent") }
+ Button { editor?.actions?.perform("outdent") } label: { text("docs.editor.menu.format.outdent") }
+ Button { editor?.actions?.perform("clear-format") } label: { text("docs.editor.menu.format.clear") }
}.disabled(editor?.actions?.isEnabled != true || !(NSApp.keyWindow?.firstResponder is DocsTextView))
}
CommandGroup(after: .toolbar) {
+ // Disabled in a reader's window and in the home window (no
+ // editor), where there is no inspector to show.
+ Button { inspectorOpen.toggle() } label: { text(inspectorOpen ? "native.format.hide" : "native.format.show") }
+ .keyboardShortcut("i", modifiers: [.command, .option])
+ .disabled(editor?.model.documentAccess != .writable)
+ Divider()
+ if let editor {
+ Picker(selection: editor.paged) {
+ text("docs.editor.menu.view.paged").tag(true)
+ text("docs.editor.menu.view.infinite").tag(false)
+ } label: { EmptyView() }
+ .pickerStyle(.inline)
+ }
+ Divider()
+ // Native only: the web has no zoom.
Menu(docsMacString("Zoom")) {
ForEach([0.5, 0.75, 1.0, 1.25, 1.5, 2.0], id: \.self) { value in
Button { editor?.zoom.wrappedValue = value } label: { Text(value, format: .percent) }
}
}.disabled(editor == nil)
Button(docsMacString("Actual size")) { editor?.zoom.wrappedValue = 1 }.keyboardShortcut("0").disabled(editor == nil)
- Button(docsMacString("Document inspector")) { editor?.inspecting.wrappedValue.toggle() }.disabled(editor == nil)
- if let editor { Toggle(docsMacString("Pages"), isOn: editor.paged) }
+ }
+ // Help: Keyboard shortcuts…, then the Colophon (DocsWindowCommands).
+ CommandGroup(before: .help) {
+ Button { editor?.shortcuts.wrappedValue = true } label: { text("docs.editor.menu.tools.shortcuts") }
+ .disabled(editor == nil)
+ }
+ CommandMenu(text("docs.editor.menu.tools")) {
+ Button { editor?.wordCount.wrappedValue = true } label: { text("docs.editor.menu.tools.wordcount") }
+ .disabled(editor?.model.history.loaded != true)
}
}
}
diff --git a/native/apple/Sources/DocsKit/DocsEditorContext.swift b/native/apple/Sources/DocsKit/DocsEditorContext.swift
index f604c9f..dfe4289 100644
--- a/native/apple/Sources/DocsKit/DocsEditorContext.swift
+++ b/native/apple/Sources/DocsKit/DocsEditorContext.swift
@@ -9,9 +9,13 @@ struct DocsEditorContext {
let client: NativeTransport
let zoom: Binding<Double>
let paged: Binding<Bool>
- let inspecting: Binding<Bool>
let sharing: Binding<Bool>
let exportRequest: Binding<String?>
+ /// Open a document… (⌘K): the jump sheet over this window.
+ let jumping: Binding<Bool>
+ /// Tools ▸ Word count… and Help ▸ Keyboard shortcuts…, as sheets.
+ let wordCount: Binding<Bool>
+ let shortcuts: Binding<Bool>
@MainActor var actions: DocumentCommands? {
guard NSApp.keyWindow?.firstResponder is DocsTextView, let projection = model.projection else { return nil }
return DocumentCommands(model: model, content: NativeTextProjection.render(projection))
diff --git a/native/apple/Sources/DocsKit/DocsFormatInspector.swift b/native/apple/Sources/DocsKit/DocsFormatInspector.swift
new file mode 100644
index 0000000..c18aa20
--- /dev/null
+++ b/native/apple/Sources/DocsKit/DocsFormatInspector.swift
@@ -0,0 +1,255 @@
+#if os(macOS)
+import AppKit
+import RastrilloApple
+import SwiftUI
+
+/// The floating Format inspector (Paul's ruling 1, option B; spec §1): a
+/// 248pt glass panel over the desk, 12pt below the toolbar and 12pt from the
+/// trailing edge, with the web inspector's four sections. An overlay in the
+/// editor's ZStack, never SwiftUI's `.inspector` (a closed `.inspector`
+/// invalidates hosting constraints on macOS 27 while the editor loads).
+///
+/// Its controls act on the text view's selection: buttons and pop-ups on the
+/// Mac do not take first responder from a click, so the caret stays where
+/// it was. Selected states come from `DocumentToolbarSelection`, as the
+/// menus' do. It reads the selection itself, so moving the caret
+/// re-evaluates this and not the body hosting the text view.
+@MainActor struct DocsFormatInspector: View {
+ let model: DocsModel
+ let content: NSAttributedString
+ @State private var settledSelection = DocumentToolbarSelection()
+ @Environment(\.accessibilityReduceTransparency) private var reduceTransparency
+ @Environment(\.colorScheme) private var colorScheme
+ @Environment(\.locale) private var locale
+
+ static let sizes = [8, 9, 10, 11, 12, 14, 18, 24, 36, 48, 72]
+
+ private var actions: DocumentCommands { DocumentCommands(model: model, content: content) }
+ private var currentSelection: DocumentToolbarSelection? { DocumentToolbarSelection(commands: actions) }
+
+ var body: some View {
+ let actions = self.actions
+ let selection = currentSelection ?? settledSelection
+ VStack(alignment: .leading, spacing: DocsSpacing.sp4) {
+ section("docs.editor.toolbar.group.style") {
+ stylePicker(selection)
+ HStack(spacing: DocsSpacing.sp2) {
+ fontPicker(selection)
+ sizePicker(selection).frame(width: 64)
+ }
+ }
+ section("docs.editor.toolbar.group.text") {
+ DocsSegmentedRow(items: [
+ .init(key: "docs.editor.toolbar.bold", icon: "bold", on: selection.marks.contains("strong")) { actions.perform("bold") },
+ .init(key: "docs.editor.toolbar.italic", icon: "italic", on: selection.marks.contains("em")) { actions.perform("italic") },
+ .init(key: "docs.editor.toolbar.code", icon: "chevron.left.forwardslash.chevron.right", on: selection.marks.contains("code")) { actions.perform("code") },
+ ])
+ }
+ section("docs.editor.toolbar.group.align") {
+ DocsSegmentedRow(items: ["left", "center", "right"].map { value in
+ .init(key: "docs.editor.toolbar.align." + value, icon: "text.align" + value, on: selection.alignment == value) {
+ actions.blockAttribute("align", value: value == "left" ? nil : value)
+ }
+ })
+ }
+ section("docs.editor.toolbar.group.lists") {
+ DocsSegmentedRow(items: [
+ .init(key: "docs.editor.toolbar.bulletlist", icon: "list.bullet", on: selection.blocks.contains("bullet_list")) { actions.block("bullet_list") },
+ .init(key: "docs.editor.toolbar.orderedlist", icon: "list.number", on: selection.blocks.contains("ordered_list")) { actions.block("ordered_list") },
+ .init(key: "docs.editor.toolbar.quote", icon: "text.quote", on: selection.blocks.contains("blockquote")) { actions.block("blockquote") },
+ ])
+ // Native keeps the mock-up's second row (spec §13 Q2).
+ DocsSegmentedRow(items: [
+ .init(key: "docs.editor.menu.format.outdent", icon: "decrease.indent", on: false, mirrors: true) { actions.perform("outdent") },
+ .init(key: "docs.editor.menu.format.indent", icon: "increase.indent", on: false, mirrors: true) { actions.perform("indent") },
+ .init(key: "docs.editor.menu.format.clear", icon: "eraser", on: false, enabled: selection.hasSelection) { actions.perform("clear-format") },
+ ])
+ }
+ }
+ .padding(DocsSpacing.sp3)
+ .frame(width: DocsDeskLayout.inspectorWidth, alignment: .leading)
+ .background { panel }
+ .overlay {
+ // A hairline accent rim: accent mixed into the line colour, 70% in
+ // light, 30% in dark. Kept under Increase Contrast.
+ RoundedRectangle(cornerRadius: 12)
+ .strokeBorder(OficinaPalette.accent(.docs).mix(with: OficinaPalette.line, by: colorScheme == .dark ? 0.7 : 0.3), lineWidth: 1)
+ }
+ .compositingGroup()
+ .shadow(color: .black.opacity(colorScheme == .dark ? 0.4 : 0.14), radius: 16, y: 6)
+ // Replica work briefly gates commands on every keystroke; keep that
+ // out of the disabled styling so the panel does not blink.
+ .disabled(!actions.isAvailable)
+ .allowsHitTesting(actions.isEnabled)
+ .accessibilityElement(children: .contain)
+ .accessibilityLabel(Text("docs.editor.inspector.label", bundle: DocsResources.bundle))
+ .accessibilityIdentifier("docs.format.inspector")
+ .onChange(of: currentSelection, initial: true) { _, value in
+ if let value { settledSelection = value }
+ }
+ }
+
+ @ViewBuilder private var panel: some View {
+ if reduceTransparency {
+ RoundedRectangle(cornerRadius: 12).fill(OficinaPalette.surface)
+ } else {
+ RoundedRectangle(cornerRadius: 12).fill(.clear).glassEffect(.regular, in: RoundedRectangle(cornerRadius: 12))
+ }
+ }
+
+ private func section<Content: View>(_ key: String, @ViewBuilder content: () -> Content) -> some View {
+ VStack(alignment: .leading, spacing: DocsSpacing.sp2) {
+ Text(LocalizedStringKey(key), bundle: DocsResources.bundle)
+ .font(.system(size: 11, weight: .semibold))
+ .foregroundStyle(OficinaPalette.textMuted)
+ .fixedSize(horizontal: false, vertical: true)
+ .accessibilityAddTraits(.isHeader)
+ content()
+ }
+ .accessibilityElement(children: .contain)
+ .accessibilityLabel(Text(LocalizedStringKey(key), bundle: DocsResources.bundle))
+ }
+
+ /// Body text and Heading 1–3, each in its own face.
+ private func stylePicker(_ selection: DocumentToolbarSelection) -> some View {
+ let strings = DocsStrings(locale: locale)
+ let entries = Self.styleEntries(selected: selection.style, strings: strings)
+ return DocsPopUp(entries: entries, selected: selection.style, label: strings("docs.editor.toolbar.block"), identifier: "docs.style-picker") { style in
+ if style.hasPrefix("heading"), let level = Int(style.dropFirst("heading".count)) { actions.block("heading", level: level) }
+ else { actions.block("paragraph") }
+ }
+ .frame(maxWidth: .infinity)
+ }
+
+ /// Families in their own faces (spec §1), stretching to the column the
+ /// size leaves: a pop-up that hugs its widest name ran past the panel.
+ private func fontPicker(_ selection: DocumentToolbarSelection) -> some View {
+ let strings = DocsStrings(locale: locale)
+ return DocsPopUp(entries: DocsFontPicker.entries.map { .init(id: $0.key, title: $0.name, font: $0.font) },
+ selected: selection.font, label: strings("native.font"), identifier: "docs.font-picker") { actions.setFont($0) }
+ .frame(minWidth: 0, maxWidth: .infinity)
+ }
+
+ /// Body text and Headings 1–3, each in its own face, and the selection's
+ /// own level when it is in a Heading 4–6.
+ static func styleEntries(selected: String, strings: DocsStrings) -> [DocsPopUp.Entry] {
+ var entries = [DocsPopUp.Entry(id: "paragraph", title: strings("docs.editor.toolbar.block.paragraph"),
+ font: DocsFonts.font(marks: [:], size: 13, heading: false))]
+ for level in 1...3 {
+ entries.append(.init(id: "heading" + String(level), title: strings(EditorToolbar.headingKey(level)),
+ font: DocsFonts.font(marks: [:], size: 13, heading: true)))
+ }
+ // Headings 4–6 still render and edit but are not offered (spec §1,
+ // menus). A selection in one shows its own level, never the style
+ // the pop-up last showed.
+ if selected.hasPrefix("heading"), let level = Int(selected.dropFirst("heading".count)), level > 3 {
+ entries.append(.init(id: selected, title: Self.headingTitle(level, strings: strings),
+ font: DocsFonts.font(marks: [:], size: 13, heading: true)))
+ }
+ return entries
+ }
+
+ /// "Heading 4" and so on, from the catalog's own format ("Heading %d").
+ static func headingTitle(_ level: Int, strings: DocsStrings) -> String {
+ let format = strings.bundle.localizedString(forKey: "Heading %d", value: nil, table: "Mac")
+ return String(format: format, level)
+ }
+
+ private func sizePicker(_ selection: DocumentToolbarSelection) -> some View {
+ let strings = DocsStrings(locale: locale)
+ return DocsPopUp(entries: Self.sizes.map { .init(id: String($0), title: $0.formatted(.number.locale(locale)), font: nil) },
+ selected: String(selection.size), label: strings("docs.editor.toolbar.size"), identifier: "docs.size-picker") { size in
+ actions.format("size_" + size, exclusive: Self.sizes.map { "size_" + String($0) } + ["size_sm", "size_lg", "size_xl"])
+ }
+ }
+}
+
+/// A Mac pop-up button over fixed entries, each title in its own face when
+/// it has one, as `DocsFontPopUp` draws the families. It stretches to the
+/// width it is given.
+struct DocsPopUp: NSViewRepresentable {
+ struct Entry { let id: String; let title: String; let font: NSFont? }
+ let entries: [Entry]
+ let selected: String
+ let label: String
+ let identifier: String
+ let choose: (String) -> Void
+ func makeCoordinator() -> Coordinator { Coordinator() }
+ func makeNSView(context: Context) -> NSPopUpButton {
+ let button = NSPopUpButton(frame: .zero, pullsDown: false)
+ button.target = context.coordinator
+ button.action = #selector(Coordinator.picked(_:))
+ button.setContentHuggingPriority(.defaultLow, for: .horizontal)
+ button.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
+ button.setAccessibilityIdentifier(identifier)
+ return button
+ }
+ func updateNSView(_ button: NSPopUpButton, context: Context) {
+ context.coordinator.choose = choose
+ button.isEnabled = context.environment.isEnabled
+ button.setAccessibilityLabel(label)
+ let titles = entries.map(\.title)
+ if button.itemArray.map(\.title) != titles {
+ let menu = NSMenu()
+ for entry in entries {
+ let item = NSMenuItem(title: entry.title, action: nil, keyEquivalent: "")
+ item.representedObject = entry.id
+ if let font = entry.font { item.attributedTitle = NSAttributedString(string: entry.title, attributes: [.font: font]) }
+ menu.addItem(item)
+ }
+ button.menu = menu
+ }
+ if let index = entries.firstIndex(where: { $0.id == selected }), button.indexOfSelectedItem != index { button.selectItem(at: index) }
+ }
+ @MainActor final class Coordinator: NSObject {
+ var choose: (String) -> Void = { _ in }
+ @objc func picked(_ sender: NSPopUpButton) {
+ if let id = sender.selectedItem?.representedObject as? String { choose(id) }
+ }
+ }
+}
+
+/// Joined 28pt buttons in one well; a lit one is accent-soft with an accent
+/// glyph, and says so to VoiceOver (`.isSelected`), never by colour alone.
+struct DocsSegmentedRow: View {
+ struct Item: Identifiable {
+ let key: String
+ let icon: String
+ let on: Bool
+ var enabled = true
+ /// Indent and outdent point along the line: they mirror right to left.
+ var mirrors = false
+ let action: () -> Void
+ var id: String { key }
+ }
+ let items: [Item]
+ var body: some View {
+ let accent = OficinaPalette.accent(.docs)
+ // spacing-allow: the joined buttons share one well, 2pt apart, as the
+ // web inspector's segmented rows.
+ HStack(spacing: 2) {
+ ForEach(items) { item in
+ Button(action: item.action) {
+ Image(systemName: item.icon)
+ .font(.system(size: 13, weight: .medium))
+ .flipsForRightToLeftLayoutDirection(item.mirrors)
+ .frame(maxWidth: .infinity, minHeight: 28) // spec §1: joined 28pt buttons
+ .contentShape(Rectangle())
+ }
+ .buttonStyle(.plain)
+ .foregroundStyle(item.on ? accent : OficinaPalette.text)
+ .background(RoundedRectangle(cornerRadius: 6).fill(item.on ? OficinaPalette.accentSoft(.docs) : .clear))
+ .overlay(RoundedRectangle(cornerRadius: 6).strokeBorder(item.on ? accent.opacity(0.55) : .clear, lineWidth: 1))
+ .disabled(!item.enabled)
+ .opacity(item.enabled ? 1 : 0.4)
+ .help(Text(LocalizedStringKey(item.key), bundle: DocsResources.bundle))
+ .accessibilityLabel(Text(LocalizedStringKey(item.key), bundle: DocsResources.bundle))
+ .accessibilityAddTraits(item.on ? .isSelected : [])
+ }
+ }
+ .padding(2) // spacing-allow: the well's inset around its joined buttons
+ .frame(height: 32) // the buttons' 28pt and the well's 2pt inset each side
+ .background(RoundedRectangle(cornerRadius: 8).fill(OficinaPalette.sunk))
+ }
+}
+#endif
diff --git a/native/apple/Sources/DocsKit/DocsJumpControls.swift b/native/apple/Sources/DocsKit/DocsJumpControls.swift
index 561d2c9..60e9eaa 100644
--- a/native/apple/Sources/DocsKit/DocsJumpControls.swift
+++ b/native/apple/Sources/DocsKit/DocsJumpControls.swift
@@ -27,6 +27,8 @@ private struct DocumentSearchResult: Decodable, Identifiable {
@MainActor struct DocsJumpSheet: View {
let model: DocsModel
let client: NativeTransport
+ /// The Mac opens or focuses the result's own window; nil opens it here.
+ var openElsewhere: ((String, String) -> Void)? = nil
@Environment(\.dismiss) private var dismiss
@FocusState private var searchFocused: Bool
@State private var query = ""
@@ -117,6 +119,11 @@ private struct DocumentSearchResult: Decodable, Identifiable {
}
private func open(_ result: DocumentSearchResult) {
guard !working, query == resultsQuery, let sqid = result.sqid else { return }
+ if let openElsewhere {
+ openElsewhere(sqid, result.title)
+ dismiss()
+ return
+ }
working = true
Task {
defer { working = false }
diff --git a/native/apple/Sources/DocsKit/DocsModel.swift b/native/apple/Sources/DocsKit/DocsModel.swift
index e7228a7..665603d 100644
--- a/native/apple/Sources/DocsKit/DocsModel.swift
+++ b/native/apple/Sources/DocsKit/DocsModel.swift
@@ -11,11 +11,36 @@ import RastrilloNative
var canCreate = false
var errorKey: String?
var detail: DocumentDetail?
- var projection: CRDTProjection?
+ var projection: CRDTProjection? {
+ didSet {
+ let next = DocumentHistoryState(projection)
+ if next != history { history = next }
+ contentRevision &+= 1
+ }
+ }
+ /// Undo, redo and whether a document is shown, observed on their own:
+ /// the header's pill and Tools ▸ Word count read these, never the
+ /// projection, which S1a takes out of observation. Assigned only when
+ /// they differ.
+ private(set) var history = DocumentHistoryState()
+ /// Moves on every new projection: what a live count (the word-count
+ /// sheet) watches to recompute.
+ private(set) var contentRevision: UInt64 = 0
var projectionGeneration: UInt64 = 0
var renderedGeneration: UInt64 = 0
var composing = false
var inputPaused = false
+ /// Spec §6 row 1: a 403 or 404 said the document was deleted or is no
+ /// longer shared. Left again on a later 200.
+ var unavailable = false
+ /// Input paused by a 401 while the session is re-minted (§6 notes): a
+ /// reason of its own, beside `inputPaused`, so the re-minted session's
+ /// 200 clears only this one and never a pause something else set.
+ private(set) var sessionPaused = false
+ /// Typing and commands are refused: paused for any reason.
+ var inputBlocked: Bool { inputPaused || sessionPaused }
+ /// What the window may do with the document (§6 rows 1 and 10).
+ var documentAccess: DocsAccess { unavailable ? .unavailable : detail?.can_write == true ? .writable : .readOnly }
var explicitCommandRevision: UInt64 = 0
var loading = false
var creatingDocument = false
@@ -272,6 +297,8 @@ import RastrilloNative
let epoch = UUID(); documentEpoch = epoch; editorIdentity = UUID()
streamTask?.cancel(); streamTask = nil
let previous = replica; replica = nil; detail = nil; projection = nil
+ if unavailable { unavailable = false }
+ if sessionPaused { sessionPaused = false }
loading = true; errorKey = nil
if let previous { await previous.close() }
guard documentEpoch == epoch else { return }
@@ -327,7 +354,7 @@ import RastrilloNative
} catch { if documentEpoch == epoch { errorKey = "docs.error.generic"; detail = nil; projection = nil } }
}
@discardableResult func enqueue(_ command: [String: JSONValue]) -> Bool {
- guard !inputPaused, detail?.can_write == true else { return false }
+ guard !inputBlocked, detail?.can_write == true else { return false }
let buffered = editing.reduce(0) { $0 + ((try? JSONEncoder().encode($1).count) ?? 0) }
guard let incoming = try? JSONEncoder().encode(command).count, incoming <= 2 * 1024 * 1024 - buffered else { errorKey = "native.pending"; return false }
var command = command
@@ -410,9 +437,11 @@ import RastrilloNative
}
if transport() != nil { offlineAccount.drainer.sessionRestored() }
offlineAccount.drainer.retryNow()
- if inputPaused {
+ if inputPaused || sessionPaused {
if let detail { await refreshAccess(detail.sqid, epoch: epoch) }
- guard documentEpoch == epoch, detail?.can_write == true else { return }
+ // Not while the document is gone (§6 row 1) or the session is
+ // being re-minted after a 401: its 200 resumes input itself.
+ guard documentEpoch == epoch, detail?.can_write == true, !unavailable, !sessionPaused else { return }
inputPaused = false; errorKey = nil
if editingTask == nil { editingTask = Task { await drainEdits() } }
} else { await flush() }
@@ -485,7 +514,11 @@ import RastrilloNative
while !Task.isCancelled, documentEpoch == epoch, detail?.sqid == sqid {
await flush()
do {
- try await client().stream("/d/\(sqid)/stream", onOpen: { await reconnect.opened() }) { [weak self] line in
+ try await client().stream("/d/\(sqid)/stream", onOpen: { [weak self] in
+ await reconnect.opened()
+ // A stream opening again after a 401 is the re-minted session.
+ await self?.sessionReopened(sqid, epoch: epoch)
+ }) { [weak self] line in
if line.hasPrefix("data:"), let seq = Int64(line.dropFirst(5).trimmingCharacters(in: .whitespaces)) {
await self?.refresh(sqid, remoteSequence: seq)
}
@@ -657,6 +690,14 @@ import RastrilloNative
guard streamTask == nil, replica != nil, !isDraft, let sqid = detail?.sqid else { return }
streamTask = Task { [weak self] in await self?.listen(sqid) }
}
+ /// Asks for the document's access again now (the stream's reopening after
+ /// a 401 does; tests call it directly).
+ func revalidateAccess() async {
+ if let sqid = detail?.sqid { await refreshAccess(sqid, epoch: documentEpoch) }
+ }
+ private func sessionReopened(_ sqid: String, epoch: UUID) async {
+ if sessionPaused { await refreshAccess(sqid, epoch: epoch) }
+ }
/// Revalidate capability after stream/write rejection while retaining the draft.
private func refreshAccess(_ sqid: String, epoch: UUID) async {
let revision = titleRevision
@@ -671,9 +712,25 @@ import RastrilloNative
let title = pendingTitle ?? ((hadPendingTitle || titleRevision != revision) ? (detail?.title ?? current.title) : current.title)
detail = DocumentDetail(sqid: current.sqid, title: title, guid: current.guid, can_write: current.can_write, can_share: current.can_share)
if !current.can_write { inputPaused = true }
- } else if [401, 403, 404].contains(reply.status) {
+ // Spec §6: a 200 after row 1 (re-shared or restored) leaves it,
+ // and releases the entries held meanwhile; after a 401, the
+ // re-minted session's 200 resumes input with the access as is.
+ if unavailable {
+ unavailable = false
+ if current.can_write { Task { [weak self] in await self?.retry() } }
+ }
+ // Only the 401's own reason: a pause something else set
+ // (native.recovered, a full outbox, a held entry) stays.
+ if sessionPaused { sessionPaused = false }
+ } else if reply.status == 401 {
+ // The session ended, not the access: pause input and leave
+ // can_write and the chrome alone while the session is re-minted.
+ if !sessionPaused { sessionPaused = true }
+ } else if [403, 404].contains(reply.status) {
+ // Deleted, or no longer shared: row 1, "No longer available".
+ if !unavailable { unavailable = true }
inputPaused = true
- if let current = detail {
+ if let current = detail, current.can_write || current.can_share {
detail = DocumentDetail(sqid: current.sqid, title: current.title, guid: current.guid, can_write: false, can_share: false)
}
}
@@ -681,3 +738,17 @@ import RastrilloNative
}
}
+
+/// What the undo/redo pill and the word-count command show (S2a), derived
+/// from each projection the model holds.
+struct DocumentHistoryState: Equatable, Sendable {
+ var loaded = false
+ var canUndo = false
+ var canRedo = false
+ init() {}
+ init(_ projection: CRDTProjection?) {
+ loaded = projection != nil
+ canUndo = projection?.canUndo == true
+ canRedo = projection?.canRedo == true
+ }
+}
diff --git a/native/apple/Sources/DocsKit/DocsOficinaID.swift b/native/apple/Sources/DocsKit/DocsOficinaID.swift
index 6047bef..ba3357d 100644
--- a/native/apple/Sources/DocsKit/DocsOficinaID.swift
+++ b/native/apple/Sources/DocsKit/DocsOficinaID.swift
@@ -170,6 +170,17 @@ public enum DocsSignInRoute: String, Sendable {
accountID(identity: state.identity.id, team: state.team.sqid)
}
+ /// The team name a document window of `account` shows in its subtitle
+ /// (spec D7): the signed-in team's, or another team of the same identity
+ /// from the teams cache, read each time so a renamed team shows its new
+ /// name. nil for a server account or a team this device has not seen.
+ public func teamName(forAccount account: String) -> String? {
+ guard let state = mounted ?? signedIn else { return nil }
+ if Self.accountID(state) == account { return state.team.name }
+ return model.store.teams(state.identity.id)?.teams
+ .first { Self.accountID(identity: state.identity.id, team: $0.sqid) == account }?.name
+ }
+
nonisolated public static func accountID(identity: String, team: String) -> String {
prefix + component(identity) + "." + component(team)
}
diff --git a/native/apple/Sources/DocsKit/DocsPagedTextView.swift b/native/apple/Sources/DocsKit/DocsPagedTextView.swift
index 3ed20fc..73d33fd 100644
--- a/native/apple/Sources/DocsKit/DocsPagedTextView.swift
+++ b/native/apple/Sources/DocsKit/DocsPagedTextView.swift
@@ -47,7 +47,9 @@ import AppKit
layoutSubtreeIfNeeded()
super.didChangeText()
}
- private var viewportWidth: CGFloat { max(636, enclosingScrollView?.contentView.bounds.width ?? bounds.width) }
+ /// A fixed paper band: the desk (DocsDeskView) places and centres it, so
+ /// a width change or the inspector never changes the text's geometry.
+ private var viewportWidth: CGFloat { DocsDeskLayout.paperWidth }
private func updatePagination() {
guard !updatingPagination else { return }
updatingPagination = true
diff --git a/native/apple/Sources/DocsKit/DocsSubtitle.swift b/native/apple/Sources/DocsKit/DocsSubtitle.swift
new file mode 100644
index 0000000..585643f
--- /dev/null
+++ b/native/apple/Sources/DocsKit/DocsSubtitle.swift
@@ -0,0 +1,202 @@
+import Foundation
+import RastrilloApple
+import RastrilloNative
+import SwiftUI
+
+/// What the window can do with its document, from the last detail answer
+/// (spec §6 rows 1 and 10). A 401 is not here: it pauses input and leaves
+/// the access alone while the session is re-minted.
+enum DocsAccess: Equatable, Sendable {
+ case writable
+ case readOnly
+ /// A 403 or 404 from `refreshAccess`: deleted, or no longer shared.
+ case unavailable
+}
+
+/// One row of spec §6's subtitle table, in its precedence order. The first
+/// that applies wins (`init(...)`).
+enum DocsSubtitleRow: Equatable, Sendable {
+ case unavailable // 1
+ case failedHeld // 2
+ case cannotSaveOnDevice // 3
+ case tooManyUnsent // 4
+ case needsSignIn(pending: Int) // 5
+ case signedOut // 6
+ case offline(pending: Int) // 7, and 12 is `saved` with the banner
+ case retrying(pending: Int) // 8
+ case saving // 9
+ case viewOnly // 10
+ case saved // 11 and 12
+ case loading // 13
+
+ /// - `savingShown`: the status has not been `.saved` for a whole second
+ /// (the debounce, kept by the view in a `.task`, never in `body`).
+ /// - `loading`: no projection yet.
+ ///
+ /// Row 13 is checked before rows 10 and 11: the table lists it last, but
+ /// a document still loading is "saved" to the outbox, so taken in the
+ /// table's order it could never show.
+ init(access: DocsAccess, status: SyncStatus, savingShown: Bool, loading: Bool) {
+ if access == .unavailable { self = .unavailable; return }
+ switch status {
+ case .failed(_, .held): self = .failedHeld; return
+ case .failed(_, .cannotSaveOnDevice): self = .cannotSaveOnDevice; return
+ case .failed(_, .tooManyUnsent): self = .tooManyUnsent; return
+ case .needsSignIn(let pending): self = pending > 0 ? .needsSignIn(pending: pending) : .signedOut; return
+ case .offline(let pending): self = .offline(pending: pending); return
+ case .retrying(let pending): self = .retrying(pending: pending); return
+ case .saving, .saved: break
+ }
+ if savingShown { self = .saving; return }
+ if loading { self = .loading; return }
+ self = access == .readOnly ? .viewOnly : .saved
+ }
+
+ /// Red, and the words say what went wrong (rows 1–6).
+ var isNegative: Bool {
+ switch self {
+ case .unavailable, .failedHeld, .cannotSaveOnDevice, .tooManyUnsent, .needsSignIn, .signedOut: return true
+ default: return false
+ }
+ }
+ /// Only row 2 is semibold, as the kit's failed status is.
+ var isEmphasised: Bool { self == .failedHeld }
+
+ /// The kit's rule (offline, needs sign-in and failed are announced, a
+ /// count change inside one kind is not, saving never is), plus No longer
+ /// available, and View only when it arrives mid-session.
+ static func announces(from old: DocsSubtitleRow, to new: DocsSubtitleRow) -> Bool {
+ if sameKind(old, new) { return false }
+ switch new {
+ case .unavailable, .failedHeld, .cannotSaveOnDevice, .tooManyUnsent, .needsSignIn, .signedOut, .offline: return true
+ case .viewOnly: return old != .loading
+ default: return false
+ }
+ }
+ static func sameKind(_ a: DocsSubtitleRow, _ b: DocsSubtitleRow) -> Bool {
+ switch (a, b) {
+ case (.offline, .offline), (.retrying, .retrying): return true
+ case (.needsSignIn, .needsSignIn), (.needsSignIn, .signedOut), (.signedOut, .needsSignIn), (.signedOut, .signedOut): return true
+ default: return a == b
+ }
+ }
+}
+
+/// Docs' catalog read in one localisation, so a view drawn in Arabic for a
+/// snapshot says Arabic even though the process runs in English, and the
+/// kit's sync wording in the same language.
+struct DocsStrings {
+ let bundle: Bundle
+ let localization: String
+
+ init(locale: Locale) {
+ let available = DocsResources.bundle.localizations.filter { $0 != "Base" }
+ let chosen = Bundle.preferredLocalizations(from: available, forPreferences: [locale.identifier]).first
+ ?? DocsResources.bundle.preferredLocalizations.first ?? "en"
+ localization = chosen
+ bundle = DocsResources.bundle.path(forResource: chosen, ofType: "lproj").flatMap(Bundle.init(path:)) ?? DocsResources.bundle
+ }
+ func callAsFunction(_ key: String) -> String { bundle.localizedString(forKey: key, value: nil, table: nil) }
+ var sync: NativeSyncStrings { NativeSyncStrings.kit(localization: localization) }
+
+ /// `native.subtitle.joined` ("%1$@ · %2$@"), looked up as a key and then
+ /// formatted, so a right-to-left language can order the two.
+ func joined(_ first: String?, _ second: String?) -> String {
+ switch (first?.isEmpty == false ? first : nil, second) {
+ case (let first?, let second?): return String(format: self("native.subtitle.joined"), first, second)
+ case (let first?, nil): return first
+ case (nil, let second?): return second
+ case (nil, nil): return ""
+ }
+ }
+
+ /// The state half of the subtitle, nil when the row says only the team.
+ func state(_ row: DocsSubtitleRow) -> String? {
+ let sync = self.sync
+ switch row {
+ case .unavailable: return self("native.subtitle.unavailable")
+ case .failedHeld: return sync.failed(.held(.tooLarge))
+ case .cannotSaveOnDevice: return sync.failed(.cannotSaveOnDevice)
+ case .tooManyUnsent: return sync.failed(.tooManyUnsent)
+ case .needsSignIn(let pending): return sync.needsSignIn(pending)
+ case .signedOut: return self("native.subtitle.signedOut")
+ case .offline(let pending): return sync.offline(pending)
+ case .retrying: return sync.retrying
+ case .saving: return sync.saving
+ case .viewOnly: return self("native.subtitle.viewOnly")
+ case .saved: return self("native.subtitle.saved")
+ case .loading: return nil
+ }
+ }
+ func subtitle(team: String?, row: DocsSubtitleRow) -> String { joined(team, state(row)) }
+}
+
+/// The subtitle under the document's title: "<Team> · <state>" (spec §6).
+/// Its own small view, so a sync status change re-evaluates this and
+/// nothing else: the body that hosts the text view never reads the status.
+@MainActor struct DocsSubtitleView: View {
+ let model: DocsModel
+ let team: String?
+ var body: some View {
+ DocsSubtitleBody(status: model.syncStatus, access: model.documentAccess, loading: model.loading, draft: model.isDraft, team: team)
+ }
+}
+
+/// The subtitle given its inputs, holding the "Saving…" debounce and the
+/// announcements. `observe` hears every row shown (tests).
+@MainActor struct DocsSubtitleBody: View {
+ let status: SyncStatus
+ let access: DocsAccess
+ let loading: Bool
+ let draft: Bool
+ let team: String?
+ var observe: ((DocsSubtitleRow) -> Void)? = nil
+ @Environment(\.locale) private var locale
+ /// The 1 s debounce for row 9, set only from the `.task` below.
+ @State private var savingShown = false
+ @State private var shown: DocsSubtitleRow?
+
+ var body: some View {
+ let row = DocsSubtitleRow(access: access, status: status, savingShown: savingShown, loading: loading)
+ DocsSubtitleLine(row: row, team: team, strings: DocsStrings(locale: locale))
+ // Not `.saved` continuously for a second shows "Saving…"; every
+ // return to `.saved` restarts the clock (spec §6, row 9).
+ .task(id: Self.unsettled(status, draft: draft)) {
+ guard Self.unsettled(status, draft: draft) else { savingShown = false; return }
+ try? await Task.sleep(for: .seconds(1))
+ if !Task.isCancelled { savingShown = true }
+ }
+ .onChange(of: row, initial: true) { old, new in
+ observe?(new)
+ defer { shown = new }
+ // Nothing is announced as the window opens, only changes.
+ guard let previous = shown, previous != new, DocsSubtitleRow.announces(from: old, to: new) else { return }
+ AccessibilityNotification.Announcement(DocsStrings(locale: locale).state(new) ?? "").post()
+ }
+ }
+ static func unsettled(_ status: SyncStatus, draft: Bool) -> Bool { draft || status != .saved }
+}
+
+/// The subtitle's drawing, given its row: muted, or negative (semibold for
+/// row 2), with an eye for View only. One accessibility element, present
+/// even when quiet, that updates frequently.
+struct DocsSubtitleLine: View {
+ let row: DocsSubtitleRow
+ let team: String?
+ let strings: DocsStrings
+ var body: some View {
+ let text = strings.subtitle(team: team, row: row)
+ HStack(spacing: DocsSpacing.sp1) {
+ if row == .viewOnly { Image(systemName: "eye").font(.system(size: 9, weight: .semibold)) }
+ Text(verbatim: text.isEmpty ? " " : text)
+ .lineLimit(1)
+ .truncationMode(.tail)
+ }
+ .font(.system(size: 11, weight: row.isEmphasised ? .semibold : .regular))
+ .foregroundStyle(row.isNegative ? OficinaPalette.negative : OficinaPalette.textMuted)
+ .accessibilityElement(children: .ignore)
+ .accessibilityLabel(Text(verbatim: text))
+ .accessibilityAddTraits(.updatesFrequently)
+ .accessibilityIdentifier("docs.document.subtitle")
+ }
+}
diff --git a/native/apple/Sources/DocsKit/DocsToolsControls.swift b/native/apple/Sources/DocsKit/DocsToolsControls.swift
index a8858e7..2058dc1 100644
--- a/native/apple/Sources/DocsKit/DocsToolsControls.swift
+++ b/native/apple/Sources/DocsKit/DocsToolsControls.swift
@@ -19,54 +19,84 @@ struct DocsToolsControls: View {
} label: {
Label { Text("docs.editor.menu.tools", bundle: DocsResources.bundle) } icon: { Image(systemName: "wrench.and.screwdriver") }
}
- .sheet(isPresented: $showingShortcuts) {
- NavigationStack {
- Form {
- ForEach(DocumentKeyboardBindings.all) { binding in
- LabeledContent {
- Text(binding.display).monospaced()
- } label: {
- Text(LocalizedStringKey(binding.titleKey), bundle: DocsResources.bundle)
- }
+ .sheet(isPresented: $showingShortcuts) { DocsShortcutsSheet { showingShortcuts = false } }
+ .sheet(isPresented: $showingCount) { DocsWordCountSheet(projection: projection, content: content, selection: selection) { showingCount = false } }
+ }
+
+}
+
+/// Keyboard shortcuts, as a sheet: Tools on the iPhone, Help ▸ Keyboard
+/// shortcuts… on the Mac.
+@MainActor struct DocsShortcutsSheet: View {
+ let close: () -> Void
+ var body: some View {
+ NavigationStack {
+ Form {
+ ForEach(DocumentKeyboardBindings.all) { binding in
+ LabeledContent {
+ Text(binding.display).monospaced()
+ } label: {
+ Text(LocalizedStringKey(binding.titleKey), bundle: DocsResources.bundle)
}
}
- .navigationTitle(Text("docs.editor.shortcuts.title", bundle: DocsResources.bundle))
- .toolbar {
- ToolbarItem(placement: .confirmationAction) {
- Button { showingShortcuts = false } label: { Text("docs.editor.shortcuts.close", bundle: DocsResources.bundle) }
- }
+ }
+ .navigationTitle(Text("docs.editor.shortcuts.title", bundle: DocsResources.bundle))
+ .toolbar {
+ ToolbarItem(placement: .confirmationAction) {
+ Button { close() } label: { Text("docs.editor.shortcuts.close", bundle: DocsResources.bundle) }
}
}
- #if os(macOS)
- .frame(minWidth: 420, minHeight: 420)
- #endif
}
- .sheet(isPresented: $showingCount) {
- let count = DocumentWordCounts(projection: projection, content: content, selection: selection)
- NavigationStack {
- Form {
- row("docs.editor.wordcount.words", count.words)
- row("docs.editor.wordcount.characters", count.characters)
- row("docs.editor.wordcount.charactersnospaces", count.charactersNoSpaces)
- row("docs.editor.wordcount.paragraphs", count.paragraphs)
- if let selected = count.selectedWords { row("docs.editor.wordcount.selection", selected) }
- }
- .navigationTitle(Text("docs.editor.wordcount.title", bundle: DocsResources.bundle))
- .toolbar {
- ToolbarItem(placement: .confirmationAction) {
- Button { showingCount = false } label: { Text("docs.editor.wordcount.close", bundle: DocsResources.bundle) }
- }
+ #if os(macOS)
+ .frame(minWidth: 420, minHeight: 420)
+ #endif
+ }
+}
+
+/// Word count, as a sheet: Tools on the iPhone, Tools ▸ Word count… on the Mac.
+@MainActor struct DocsWordCountSheet: View {
+ let projection: CRDTProjection
+ let content: NSAttributedString
+ let selection: NSRange
+ let close: () -> Void
+ var body: some View {
+ let count = DocumentWordCounts(projection: projection, content: content, selection: selection)
+ NavigationStack {
+ Form {
+ row("docs.editor.wordcount.words", count.words)
+ row("docs.editor.wordcount.characters", count.characters)
+ row("docs.editor.wordcount.charactersnospaces", count.charactersNoSpaces)
+ row("docs.editor.wordcount.paragraphs", count.paragraphs)
+ if let selected = count.selectedWords { row("docs.editor.wordcount.selection", selected) }
+ }
+ .navigationTitle(Text("docs.editor.wordcount.title", bundle: DocsResources.bundle))
+ .toolbar {
+ ToolbarItem(placement: .confirmationAction) {
+ Button { close() } label: { Text("docs.editor.wordcount.close", bundle: DocsResources.bundle) }
}
}
- #if os(macOS)
- .frame(minWidth: 360, minHeight: 290)
- #else
- .presentationDetents([.medium])
- #endif
}
+ #if os(macOS)
+ .frame(minWidth: 360, minHeight: 290)
+ #else
+ .presentationDetents([.medium])
+ #endif
}
-
private func row(_ key: LocalizedStringKey, _ value: Int) -> some View {
LabeledContent { Text(value, format: .number).monospacedDigit() } label: { Text(key, bundle: DocsResources.bundle) }
}
}
+
+/// Tools ▸ Word count… on the Mac: the counts of the document as it is now,
+/// recomputed as it changes. It watches the model's content revision, not
+/// the projection, which S1a takes out of observation.
+@MainActor struct DocsLiveWordCountSheet: View {
+ let model: DocsModel
+ let close: () -> Void
+ var body: some View {
+ let _ = model.contentRevision
+ if let projection = model.projection {
+ DocsWordCountSheet(projection: projection, content: NativeTextProjection.render(projection), selection: model.selection, close: close)
+ }
+ }
+}
diff --git a/native/apple/Sources/DocsKit/DocsWorkspace.swift b/native/apple/Sources/DocsKit/DocsWorkspace.swift
index 918d3f4..38dd179 100644
--- a/native/apple/Sources/DocsKit/DocsWorkspace.swift
+++ b/native/apple/Sources/DocsKit/DocsWorkspace.swift
@@ -14,6 +14,8 @@ import SwiftUI
@Environment(\.openWindow) private var openWindow
@Environment(\.scenePhase) private var scenePhase
@State private var jumping = false
+ @State private var countingWords = false
+ @State private var showingShortcuts = false
@State private var showingColophon = false
@State private var discarding = false
@State private var images = DocsImageStore()
@@ -33,7 +35,14 @@ import SwiftUI
private let documentID: String?
private let openDocument: ((String, String) -> Void)?
@State private var zoom = 1.0
- @State private var inspecting = false
+ #if os(macOS)
+ /// The floating Format inspector, one state for the whole app (spec D1).
+ @AppStorage(DocsInspectorState.key) private var inspectorOpen = DocsInspectorState.defaultOpen
+ @Environment(\.layoutDirection) private var layoutDirection
+ #endif
+ /// The subtitle's team (spec D7): the account's team, or the server
+ /// account's name. nil says the state alone.
+ private let team: String?
private let signOut: () -> Void
private let accounts: (() -> Void)?
private let client: NativeHTTP
@@ -43,7 +52,8 @@ import SwiftUI
@State private var signOutRefusal: DocsLeaveBlock?
/// `transport` supplies the account's current session to the model on every
/// request; without one the model keeps `client` for its whole lifetime.
- public init(client: NativeHTTP, accountID: String? = nil, transport: (@MainActor () -> NativeTransport?)? = nil, accounts: (() -> Void)? = nil, signOut: @escaping () -> Void, documentID: String? = nil, newDocument: Bool = false, createDocument: (() -> Void)? = nil, documentChanged: ((String, String) -> Void)? = nil, canSignOut: Bool = true, createRequested: Binding<Bool> = .constant(false), accountsRequested: Binding<Bool> = .constant(false), signOutRequested: Binding<Bool> = .constant(false), accountsLabel: String? = nil, signOutLabel: String? = nil, useAnother: (() -> Void)? = nil, openDocument: ((String, String) -> Void)? = nil, updateRecents: (([(String, String)]) -> Void)? = nil) {
+ public init(client: NativeHTTP, accountID: String? = nil, transport: (@MainActor () -> NativeTransport?)? = nil, accounts: (() -> Void)? = nil, signOut: @escaping () -> Void, documentID: String? = nil, newDocument: Bool = false, createDocument: (() -> Void)? = nil, documentChanged: ((String, String) -> Void)? = nil, canSignOut: Bool = true, createRequested: Binding<Bool> = .constant(false), accountsRequested: Binding<Bool> = .constant(false), signOutRequested: Binding<Bool> = .constant(false), accountsLabel: String? = nil, signOutLabel: String? = nil, useAnother: (() -> Void)? = nil, openDocument: ((String, String) -> Void)? = nil, updateRecents: (([(String, String)]) -> Void)? = nil, team: String? = nil) {
+ self.team = team
self._signOutRequested = signOutRequested; self.accountsLabel = accountsLabel; self.signOutLabel = signOutLabel; self.useAnother = useAnother
self.updateRecents = updateRecents; self.canSignOut = canSignOut; self._createRequested = createRequested; self._accountsRequested = accountsRequested; self.documentID = documentID; self.openDocument = openDocument
self.newDocument = newDocument; self.createDocument = createDocument; self.documentChanged = documentChanged
@@ -137,7 +147,7 @@ import SwiftUI
.onChange(of: [model.detail?.sqid, model.detail?.title]) {
if !model.isDraft, let detail = model.detail { documentChanged?(detail.sqid, detail.title) }
}
- .sheet(isPresented: $jumping) { DocsJumpSheet(model: model, client: liveClient) }
+ .sheet(isPresented: $jumping) { DocsJumpSheet(model: model, client: liveClient, openElsewhere: jumpOpensWindows ? openDocument : nil) }
.onDisappear { Task { await model.stop() } }
.onChange(of: scenePhase) { _, phase in
#if os(iOS)
@@ -189,13 +199,19 @@ import SwiftUI
#endif
}
private func beginRename() {
+ // Only a writer gets an editable title (spec §1, rename).
+ guard model.documentAccess == .writable else { return }
model.renameInput = model.detail?.title ?? ""
renaming = true; titleFocused = true
}
- private func finishRename() {
- guard renaming else { return }
- if model.commitRename() { renaming = false }
+ /// Commits the title; false when the model refused it (too long, not
+ /// saved on the device, no longer writable), and the field stays open.
+ @discardableResult private func finishRename() -> Bool {
+ guard renaming else { return true }
+ if model.commitRename() { renaming = false; return true }
+ return false
}
+ #if os(iOS)
private var documentTitle: some View {
Group {
if renaming {
@@ -220,9 +236,31 @@ import SwiftUI
}
}
}
+ #endif
+ /// On the Mac, a jump from a document or the home window opens or
+ /// focuses the result's own window instead of replacing this one.
+ private var jumpOpensWindows: Bool {
+ #if os(macOS)
+ true
+ #else
+ false
+ #endif
+ }
+ #if os(macOS)
+ /// Share… flushes first, as today; S2b replaces the sheet with a popover.
+ private func share() {
+ Task { await model.flush(); if !model.hasUnsavedChanges { sharing = true } }
+ }
+ /// A writer's window shows the inspector when the app-wide state says
+ /// open; a reader's never does, and never writes the state (spec §1).
+ private var showsInspector: Bool { inspectorOpen && model.documentAccess == .writable }
+ #endif
private var editor: some View {
VStack(spacing: 0) {
+ #if os(iOS)
NativeSyncStatusView(status: model.syncStatus)
+ #endif
+ #if os(iOS)
if let key = model.errorKey {
HStack {
Text(LocalizedStringKey(key), bundle: DocsResources.bundle)
@@ -232,31 +270,65 @@ import SwiftUI
}
}.padding().accessibilityElement(children: .contain)
}
+ #endif
if model.loading { ProgressView() }
if let projection = model.projection {
let documentPath = "/d/" + (model.detail?.sqid ?? "")
let text = NativeTextProjection.render(projection, images: images.images(forDocumentPath: documentPath, client: liveClient))
+ #if os(iOS)
EditorToolbar(model: model, content: text)
Divider()
- NativeDocumentTextView(content: text, generation: model.projectionGeneration, didRender: model.didRender, compositionChanged: model.compositionChanged, isEditable: model.detail?.can_write == true && !model.inputPaused, paged: paged, pendingInput: model.hasPendingInput, canRender: model.canRender, currentSelection: model.currentSelection, selection: $model.selection, edit: model.enqueue, action: { action in
+ #endif
+ NativeDocumentTextView(content: text, generation: model.projectionGeneration, didRender: model.didRender, compositionChanged: model.compositionChanged, isEditable: model.detail?.can_write == true && !model.inputBlocked, paged: paged, pendingInput: model.hasPendingInput, canRender: model.canRender, currentSelection: model.currentSelection, selection: $model.selection, edit: model.enqueue, action: { action in
if action == "jump" {
- #if os(macOS)
- openWindow(id: "home")
- #else
+ // Open a document… (⌘K): the jump palette as a sheet
+ // over this window, on the Mac too (spec §1, menus).
jumping = true
- #endif
return true
}
return DocumentCommands(model: model, content: text).perform(action)
- }, selectionMoved: model.selectionMovedExplicitly, canAction: { action in model.detail?.can_write == true && !model.hasPendingInput && !model.composing && !model.inputPaused && (action == "undo" ? projection.canUndo : projection.canRedo) }, explicitCommandRevision: model.explicitCommandRevision, zoom: zoom, typingMarks: model.typingMarks)
+ }, selectionMoved: model.selectionMovedExplicitly, canAction: { action in model.detail?.can_write == true && !model.hasPendingInput && !model.composing && !model.inputBlocked && (action == "undo" ? projection.canUndo : projection.canRedo) }, explicitCommandRevision: model.explicitCommandRevision, zoom: zoom, typingMarks: model.typingMarks)
+ #if os(macOS)
+ .inspectorSide(showsInspector ? (layoutDirection == .rightToLeft ? .left : .right) : nil)
+ #endif
.id(model.editorIdentity)
+ #if os(macOS)
+ .overlay(alignment: .topTrailing) {
+ if showsInspector {
+ DocsFormatInspector(model: model, content: text)
+ .padding(.top, DocsDeskLayout.inspectorInset)
+ .padding(.trailing, DocsDeskLayout.inspectorInset)
+ }
+ }
+ #endif
.task(id: [documentPath] + DocsImageStore.sources(in: projection)) { await images.load(sources: DocsImageStore.sources(in: projection), client: liveClient, documentPath: documentPath) }
} else {
ContentUnavailableView { Label { Text("native.open", bundle: DocsResources.bundle) } icon: { Image(systemName: "doc.text") } }
}
}.navigationTitle(model.detail?.title ?? "")
+ #if os(macOS)
+ // One title (spec §1): the window's title stays the document's,
+ // for the Window menu, tabs and VoiceOver, but the system does
+ // not draw it; Docs' title area does, with the subtitle.
+ .overlay(alignment: .top) { DocsDocumentCallouts(model: model, discard: { discarding = true }, inspectorShown: showsInspector, signIn: { openWindow(id: "home") }) }
+ .toolbar(removing: .title)
+ .toolbar {
+ ToolbarItem(placement: .navigation) {
+ DocsTitleArea(model: model, team: team, renaming: $renaming, beginRename: beginRename, finishRename: finishRename)
+ }
+ .sharedBackgroundVisibility(.hidden)
+ ToolbarSpacer(.flexible)
+ // Three items, so a narrow window moves them into the » menu
+ // one at a time: Share… first, then Format, then undo/redo.
+ ToolbarItem(placement: .primaryAction) { DocsHeaderControls(model: model, inspectorOpen: $inspectorOpen, part: .history, share: share) }
+ .sharedBackgroundVisibility(.hidden)
+ ToolbarItem(placement: .primaryAction) { DocsHeaderControls(model: model, inspectorOpen: $inspectorOpen, part: .format, share: share) }
+ .sharedBackgroundVisibility(.hidden)
+ ToolbarItem(placement: .primaryAction) { DocsHeaderControls(model: model, inspectorOpen: $inspectorOpen, part: .share, share: share) }
+ .sharedBackgroundVisibility(.hidden)
+ }
+ #else
.toolbar { ToolbarItem(placement: .principal) { documentTitle } }
- #if os(iOS)
.navigationBarTitleDisplayMode(.inline)
#endif
#if os(iOS)
@@ -282,30 +354,10 @@ import SwiftUI
.frame(width: 0, height: 0).hidden().accessibilityHidden(true)
}
}
- .toolbar { Button(docsMacString("Inspector"), systemImage: "sidebar.right") { inspecting.toggle() } }
- // A closed SwiftUI inspector can repeatedly invalidate hosting-view
- // constraints on macOS 27 while the editor loads. Keep this panel in
- // the ordinary view layout so opening a document has stable sizing.
- .safeAreaInset(edge: .trailing, spacing: 0) {
- if inspecting {
- Form {
- LabeledContent(docsMacString("Document"), value: model.detail?.title ?? "")
- Picker(docsMacString("Zoom"), selection: $zoom) {
- ForEach([0.5, 0.75, 1.0, 1.25, 1.5, 2.0], id: \.self) { value in
- Text(value, format: .percent).tag(value)
- }
- }
- Toggle(docsMacString("Pages"), isOn: $paged)
- if let projection = model.projection {
- DocsToolsControls(projection: projection, content: NativeTextProjection.render(projection), selection: model.selection)
- }
- }.formStyle(.grouped).frame(width: 280)
- .frame(maxHeight: .infinity)
- .background(.background)
- .overlay(alignment: .leading) { Divider() }
- }
- }
- .focusedSceneValue(\.docsEditor, DocsEditorContext(model: model, rename: beginRename, client: liveClient, zoom: $zoom, paged: $paged, inspecting: $inspecting, sharing: $sharing, exportRequest: $exportRequest))
+ .focusedSceneValue(\.docsJump, $jumping)
+ .focusedSceneValue(\.docsEditor, DocsEditorContext(model: model, rename: beginRename, client: liveClient, zoom: $zoom, paged: $paged, sharing: $sharing, exportRequest: $exportRequest, jumping: $jumping, wordCount: $countingWords, shortcuts: $showingShortcuts))
+ .sheet(isPresented: $countingWords) { DocsLiveWordCountSheet(model: model) { countingWords = false } }
+ .sheet(isPresented: $showingShortcuts) { DocsShortcutsSheet { showingShortcuts = false } }
#endif
}
@@ -345,6 +397,7 @@ import SwiftUI
.navigationTitle(docsMacString("Home"))
.searchable(text: $query, prompt: Text("docs.list.search.label", bundle: DocsResources.bundle))
.onSubmit(of: .search) { Task { await model.load(query: query) } }
+ .focusedSceneValue(\.docsJump, $jumping)
.focusedSceneValue(\.docsAccountActions, DocsAccountActions(accounts: accounts, signOut: signOut, canManage: !model.creatingDocument, canSignOut: canSignOut && !model.creatingDocument,
useAnother: useAnother, accountsLabel: accountsLabel, signOutLabel: signOutLabel))
.toolbar {
diff --git a/native/apple/Sources/DocsKit/DocumentCommands.swift b/native/apple/Sources/DocsKit/DocumentCommands.swift
index 9123760..60abaf5 100644
--- a/native/apple/Sources/DocsKit/DocumentCommands.swift
+++ b/native/apple/Sources/DocsKit/DocumentCommands.swift
@@ -3,7 +3,7 @@ import Foundation
@MainActor struct DocumentCommands {
let model: DocsModel
let content: NSAttributedString
- var isAvailable: Bool { model.detail?.can_write == true && !model.inputPaused }
+ var isAvailable: Bool { model.detail?.can_write == true && !model.inputBlocked }
var isEnabled: Bool {
isAvailable && !model.composing && !model.hasPendingInput
&& model.renderedGeneration == model.projectionGeneration
diff --git a/native/apple/Sources/DocsKit/NativeDocumentTextView.swift b/native/apple/Sources/DocsKit/NativeDocumentTextView.swift
index ed82c36..0c57811 100644
--- a/native/apple/Sources/DocsKit/NativeDocumentTextView.swift
+++ b/native/apple/Sources/DocsKit/NativeDocumentTextView.swift
@@ -21,6 +21,9 @@ struct NativeDocumentTextView: NSViewRepresentable {
/// Marks chosen at a collapsed caret (DocsModel.typingMarks), so marked
/// text is drawn in the face it will commit in.
var typingMarks: [String: JSONValue]? = nil
+ /// The side the floating inspector covers, nil while it is hidden: the
+ /// desk centres the page clear of it (spec §1, page centring).
+ var inspector: DocsDeskLayout.Side? = nil
func makeCoordinator() -> Coordinator { Coordinator(self) }
func makeNSView(context: Context) -> NSScrollView {
let scroll = NSScrollView()
@@ -32,8 +35,8 @@ struct NativeDocumentTextView: NSViewRepresentable {
scroll.magnification = 4.0 / 3.0
let text = DocsTextView(frame: .zero)
text.isVerticallyResizable = false
- text.autoresizingMask = [.width]
- scroll.documentView = text
+ // The page is a fixed paper band on the desk, which centres it (S2a).
+ scroll.documentView = DocsDeskView(page: text)
text.delegate = context.coordinator
let coordinator = context.coordinator
text.action = { [weak text] action in
@@ -58,7 +61,8 @@ struct NativeDocumentTextView: NSViewRepresentable {
return scroll
}
func updateNSView(_ scroll: NSScrollView, context: Context) {
- guard let text = scroll.documentView as? NSTextView else { return }
+ guard let desk = scroll.documentView as? DocsDeskView, let text = desk.page as? NSTextView else { return }
+ desk.inspector = inspector
let magnification = zoom * 4.0 / 3.0
if abs(scroll.magnification - magnification) > 0.001 {
scroll.setMagnification(magnification, centeredAt: scroll.contentView.bounds.origin)
diff --git a/native/apple/Sources/DocsKit/Resources/ar.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/ar.lproj/Localizable.strings
index a2c0b6a..56dde3f 100644
--- a/native/apple/Sources/DocsKit/Resources/ar.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/ar.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "تسجيل الدخول…";
"native.leave.sending" = "لا يزال Docs يرسل التغييرات. حاول مرة أخرى بعد حفظها.";
"native.leave.openDocuments" = "أغلق المستندات المفتوحة لهذا الحساب أولًا.";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "السجل";
+"docs.editor.toolbar.group.style" = "النمط";
+"docs.editor.toolbar.group.text" = "النص";
+"docs.editor.toolbar.group.align" = "المحاذاة";
+"docs.editor.toolbar.group.lists" = "القوائم";
+"docs.editor.inspector.label" = "تنسيق";
+"docs.editor.inspector.toggle" = "تنسيق";
+"docs.share.action" = "مشاركة…";
+"native.subtitle.saved" = "تم الحفظ";
+"native.subtitle.viewOnly" = "للعرض فقط";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "لم يعد متاحًا";
+"native.unavailable.body" = "حُذف هذا المستند أو لم يعد مشتركًا معك.";
+"native.subtitle.signedOut" = "تم تسجيل الخروج";
+"native.format.show" = "إظهار التنسيق";
+"native.format.hide" = "إخفاء التنسيق";
diff --git a/native/apple/Sources/DocsKit/Resources/ar.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/ar.lproj/Mac.strings
index 0f71091..aa6fa41 100644
--- a/native/apple/Sources/DocsKit/Resources/ar.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/ar.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "الحسابات";
"Actual size" = "الحجم الفعلي";
-"Alignment" = "المحاذاة";
-"Block quote" = "كتلة اقتباس";
-"Bold" = "عريض";
-"Bullet list" = "قائمة نقطية";
"Cell contents" = "محتوى الخلية";
-"Clear formatting" = "مسح التنسيق";
"Close this account’s document windows before signing out." = "أغلق نوافذ مستندات هذا الحساب قبل تسجيل الخروج.";
"Create a document to get started." = "ستظهر المستندات التي تنشئها هنا، بدءًا بالأحدث.";
"Docs" = "Docs";
-"Document" = "المستند";
-"Document inspector" = "خصائص المستند";
"Double-click to fit column to contents" = "انقر مرتين لملاءمة العمود للمحتوى";
"Edit %@" = "تحرير %@";
"Export" = "تصدير";
"Fit column to contents" = "ملاءمة العمود للمحتوى";
-"Font" = "الخط";
-"Format" = "تنسيق";
"Heading %d" = "العنوان %d";
"Home" = "الرئيسية";
-"Indent" = "زيادة المسافة البادئة";
-"Inline code" = "شيفرة";
-"Inspector" = "خصائص المستند";
-"Italic" = "مائل";
"Markdown…" = "Markdown";
"New document" = "مستند جديد";
"No documents" = "لا توجد مستندات بعد";
"No recent documents" = "لا توجد مستندات بعد";
-"Normal" = "نص أساسي";
-"Numbered list" = "قائمة مرقّمة";
"Open a document from Home" = "افتح مستندًا من الرئيسية";
-"Outdent" = "تقليل المسافة البادئة";
"PDF…" = "PDF";
-"Pages" = "صفحات";
-"Paragraph style" = "نمط الفقرة";
"Print…" = "طباعة";
"Recent" = "الأخيرة";
"Recent documents" = "المستندات الأخيرة";
@@ -43,9 +25,7 @@
"Select column %@" = "تحديد العمود %@";
"Select row %d" = "تحديد الصف %d";
"Shared" = "تمت مشاركتها معك";
-"Share…" = "مشاركة";
"Sign out" = "تسجيل الخروج";
-"Size" = "الحجم";
"Zoom" = "التكبير";
"Untitled document" = "مستند بلا عنوان";
diff --git a/native/apple/Sources/DocsKit/Resources/bn.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/bn.lproj/Localizable.strings
index 14855a7..cb452a4 100644
--- a/native/apple/Sources/DocsKit/Resources/bn.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/bn.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "সাইন ইন করুন…";
"native.leave.sending" = "Docs এখনও পরিবর্তন পাঠাচ্ছে। সেগুলি সংরক্ষিত হলে আবার চেষ্টা করুন।";
"native.leave.openDocuments" = "প্রথমে এই অ্যাকাউন্টের খোলা ডকুমেন্টগুলি বন্ধ করুন।";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "ইতিহাস";
+"docs.editor.toolbar.group.style" = "শৈলী";
+"docs.editor.toolbar.group.text" = "টেক্সট";
+"docs.editor.toolbar.group.align" = "সারিবদ্ধতা";
+"docs.editor.toolbar.group.lists" = "তালিকা";
+"docs.editor.inspector.label" = "বিন্যাস";
+"docs.editor.inspector.toggle" = "বিন্যাস";
+"docs.share.action" = "শেয়ার করুন…";
+"native.subtitle.saved" = "সংরক্ষিত";
+"native.subtitle.viewOnly" = "শুধু দেখার জন্য";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "আর উপলভ্য নেই";
+"native.unavailable.body" = "এই নথিটি মুছে ফেলা হয়েছে বা আর আপনার সঙ্গে শেয়ার করা নেই।";
+"native.subtitle.signedOut" = "সাইন আউট করা হয়েছে";
+"native.format.show" = "বিন্যাস দেখান";
+"native.format.hide" = "বিন্যাস লুকান";
diff --git a/native/apple/Sources/DocsKit/Resources/bn.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/bn.lproj/Mac.strings
index e5ef63c..a71a8b2 100644
--- a/native/apple/Sources/DocsKit/Resources/bn.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/bn.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "অ্যাকাউন্ট";
"Actual size" = "প্রকৃত আকার";
-"Alignment" = "প্রান্তিককরণ";
-"Block quote" = "উদ্ধৃতির ব্লক";
-"Bold" = "গাঢ়";
-"Bullet list" = "বুলেটযুক্ত তালিকা";
"Cell contents" = "ঘরের বিষয়বস্তু";
-"Clear formatting" = "বিন্যাস মুছুন";
"Close this account’s document windows before signing out." = "সাইন আউট করার আগে এই অ্যাকাউন্টের নথির উইন্ডোগুলি বন্ধ করুন।";
"Create a document to get started." = "আপনার তৈরি নথি এখানে দেখা যাবে, নতুনগুলো আগে।";
"Docs" = "Docs";
-"Document" = "নথি";
-"Document inspector" = "নথি পরিদর্শক";
"Double-click to fit column to contents" = "বিষয়বস্তু অনুযায়ী কলাম মাপতে দুবার ক্লিক করুন";
"Edit %@" = "%@ সম্পাদনা করুন";
"Export" = "রপ্তানি";
"Fit column to contents" = "বিষয়বস্তু অনুযায়ী কলাম মাপুন";
-"Font" = "ফন্ট";
-"Format" = "বিন্যাস";
"Heading %d" = "শিরোনাম %d";
"Home" = "হোম";
-"Indent" = "ইন্ডেন্ট বাড়ান";
-"Inline code" = "কোড";
-"Inspector" = "নথি পরিদর্শক";
-"Italic" = "তির্যক";
"Markdown…" = "Markdown";
"New document" = "নতুন নথি";
"No documents" = "এখনও কোনো নথি নেই";
"No recent documents" = "এখনও কোনো নথি নেই";
-"Normal" = "মূল পাঠ্য";
-"Numbered list" = "সংখ্যাযুক্ত তালিকা";
"Open a document from Home" = "হোম থেকে একটি নথি খুলুন";
-"Outdent" = "ইন্ডেন্ট কমান";
"PDF…" = "PDF";
-"Pages" = "পৃষ্ঠাভিত্তিক";
-"Paragraph style" = "অনুচ্ছেদের শৈলী";
"Print…" = "প্রিন্ট করুন";
"Recent" = "সাম্প্রতিক";
"Recent documents" = "সাম্প্রতিক নথি";
@@ -43,9 +25,7 @@
"Select column %@" = "কলাম %@ নির্বাচন করুন";
"Select row %d" = "সারি %d নির্বাচন করুন";
"Shared" = "আপনার সঙ্গে শেয়ার করা";
-"Share…" = "শেয়ার করুন";
"Sign out" = "সাইন আউট করুন";
-"Size" = "আকার";
"Zoom" = "জুম";
"Untitled document" = "শিরোনামহীন নথি";
diff --git a/native/apple/Sources/DocsKit/Resources/en.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/en.lproj/Localizable.strings
index 5a3688f..4e3eb18 100644
--- a/native/apple/Sources/DocsKit/Resources/en.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/en.lproj/Localizable.strings
@@ -210,3 +210,21 @@
"native.settings.signIn" = "Sign in…";
"native.leave.sending" = "Docs is still sending changes. Try again once they’re saved.";
"native.leave.openDocuments" = "Close this account’s open documents first.";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "History";
+"docs.editor.toolbar.group.style" = "Style";
+"docs.editor.toolbar.group.text" = "Text";
+"docs.editor.toolbar.group.align" = "Alignment";
+"docs.editor.toolbar.group.lists" = "Lists";
+"docs.editor.inspector.label" = "Format";
+"docs.editor.inspector.toggle" = "Format";
+"docs.share.action" = "Share…";
+"native.subtitle.saved" = "Saved";
+"native.subtitle.viewOnly" = "View only";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "No longer available";
+"native.unavailable.body" = "This document was deleted or is no longer shared with you.";
+"native.subtitle.signedOut" = "Signed out";
+"native.format.show" = "Show Format";
+"native.format.hide" = "Hide Format";
diff --git a/native/apple/Sources/DocsKit/Resources/en.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/en.lproj/Mac.strings
index 257c19e..64ea587 100644
--- a/native/apple/Sources/DocsKit/Resources/en.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/en.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "Accounts";
"Actual size" = "Actual size";
-"Alignment" = "Alignment";
-"Block quote" = "Block quote";
-"Bold" = "Bold";
-"Bullet list" = "Bulleted list";
"Cell contents" = "Cell contents";
-"Clear formatting" = "Clear formatting";
"Close this account’s document windows before signing out." = "Close this account’s document windows before signing out.";
"Create a document to get started." = "Documents you create will show up here, newest first.";
"Docs" = "Docs";
-"Document" = "Document";
-"Document inspector" = "Document inspector";
"Double-click to fit column to contents" = "Double-click to fit column to contents";
"Edit %@" = "Edit %@";
"Export" = "Export";
"Fit column to contents" = "Fit column to contents";
-"Font" = "Font";
-"Format" = "Format";
"Heading %d" = "Heading %d";
"Home" = "Home";
-"Indent" = "Increase indent";
-"Inline code" = "Code";
-"Inspector" = "Document inspector";
-"Italic" = "Italic";
"Markdown…" = "Markdown";
"New document" = "New document";
"No documents" = "No documents yet";
"No recent documents" = "No documents yet";
-"Normal" = "Body text";
-"Numbered list" = "Numbered list";
"Open a document from Home" = "Open a document from Home";
-"Outdent" = "Decrease indent";
"PDF…" = "PDF";
-"Pages" = "Paged";
-"Paragraph style" = "Paragraph style";
"Print…" = "Print";
"Recent" = "Recent";
"Recent documents" = "Recent documents";
@@ -43,9 +25,7 @@
"Select column %@" = "Select column %@";
"Select row %d" = "Select row %d";
"Shared" = "Shared with you";
-"Share…" = "Share";
"Sign out" = "Sign out";
-"Size" = "Size";
"Zoom" = "Zoom";
"Untitled document" = "Untitled document";
diff --git a/native/apple/Sources/DocsKit/Resources/es.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/es.lproj/Localizable.strings
index b068458..d28d117 100644
--- a/native/apple/Sources/DocsKit/Resources/es.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/es.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "Iniciar sesión…";
"native.leave.sending" = "Docs todavía está enviando cambios. Inténtalo de nuevo cuando se hayan guardado.";
"native.leave.openDocuments" = "Cierra primero los documentos abiertos de esta cuenta.";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "Historial";
+"docs.editor.toolbar.group.style" = "Estilo";
+"docs.editor.toolbar.group.text" = "Texto";
+"docs.editor.toolbar.group.align" = "Alineación";
+"docs.editor.toolbar.group.lists" = "Listas";
+"docs.editor.inspector.label" = "Formato";
+"docs.editor.inspector.toggle" = "Formato";
+"docs.share.action" = "Compartir…";
+"native.subtitle.saved" = "Guardado";
+"native.subtitle.viewOnly" = "Solo lectura";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "Ya no está disponible";
+"native.unavailable.body" = "Este documento se eliminó o ya no se comparte contigo.";
+"native.subtitle.signedOut" = "Sesión cerrada";
+"native.format.show" = "Mostrar Formato";
+"native.format.hide" = "Ocultar Formato";
diff --git a/native/apple/Sources/DocsKit/Resources/es.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/es.lproj/Mac.strings
index 3568620..57ff6ba 100644
--- a/native/apple/Sources/DocsKit/Resources/es.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/es.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "Cuentas";
"Actual size" = "Tamaño real";
-"Alignment" = "Alineación";
-"Block quote" = "Cita en bloque";
-"Bold" = "Negrita";
-"Bullet list" = "Lista con viñetas";
"Cell contents" = "Contenido de la celda";
-"Clear formatting" = "Borrar formato";
"Close this account’s document windows before signing out." = "Cierra las ventanas de documentos de esta cuenta antes de cerrar sesión.";
"Create a document to get started." = "Los documentos que crees aparecerán aquí, empezando por los más recientes.";
"Docs" = "Docs";
-"Document" = "Documento";
-"Document inspector" = "Inspector del documento";
"Double-click to fit column to contents" = "Haz doble clic para ajustar la columna al contenido";
"Edit %@" = "Editar %@";
"Export" = "Exportar";
"Fit column to contents" = "Ajustar columna al contenido";
-"Font" = "Fuente";
-"Format" = "Formato";
"Heading %d" = "Título %d";
"Home" = "Inicio";
-"Indent" = "Aumentar sangría";
-"Inline code" = "Código";
-"Inspector" = "Inspector del documento";
-"Italic" = "Cursiva";
"Markdown…" = "Markdown";
"New document" = "Nuevo documento";
"No documents" = "Aún no hay documentos";
"No recent documents" = "Aún no hay documentos";
-"Normal" = "Texto del cuerpo";
-"Numbered list" = "Lista numerada";
"Open a document from Home" = "Abre un documento desde Inicio";
-"Outdent" = "Reducir sangría";
"PDF…" = "PDF";
-"Pages" = "Por páginas";
-"Paragraph style" = "Estilo de párrafo";
"Print…" = "Imprimir";
"Recent" = "Recientes";
"Recent documents" = "Documentos recientes";
@@ -43,9 +25,7 @@
"Select column %@" = "Seleccionar columna %@";
"Select row %d" = "Seleccionar fila %d";
"Shared" = "Compartidos contigo";
-"Share…" = "Compartir";
"Sign out" = "Cerrar sesión";
-"Size" = "Tamaño";
"Zoom" = "Zoom";
"Untitled document" = "Documento sin título";
diff --git a/native/apple/Sources/DocsKit/Resources/ga.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/ga.lproj/Localizable.strings
index 145a95a..e126b9c 100644
--- a/native/apple/Sources/DocsKit/Resources/ga.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/ga.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "Sínigh isteach…";
"native.leave.sending" = "Tá Docs fós ag seoladh athruithe. Bain triail eile as nuair a bheidh siad sábháilte.";
"native.leave.openDocuments" = "Dún doiciméid oscailte an chuntais seo ar dtús.";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "Stair";
+"docs.editor.toolbar.group.style" = "Stíl";
+"docs.editor.toolbar.group.text" = "Téacs";
+"docs.editor.toolbar.group.align" = "Ailíniú";
+"docs.editor.toolbar.group.lists" = "Liostaí";
+"docs.editor.inspector.label" = "Formáid";
+"docs.editor.inspector.toggle" = "Formáid";
+"docs.share.action" = "Comhroinn…";
+"native.subtitle.saved" = "Sábháilte";
+"native.subtitle.viewOnly" = "Léamh amháin";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "Níl sé ar fáil a thuilleadh";
+"native.unavailable.body" = "Scriosadh an doiciméad seo nó níl sé comhroinnte leat a thuilleadh.";
+"native.subtitle.signedOut" = "Sínithe amach";
+"native.format.show" = "Taispeáin Formáid";
+"native.format.hide" = "Folaigh Formáid";
diff --git a/native/apple/Sources/DocsKit/Resources/ga.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/ga.lproj/Mac.strings
index 4be5249..049b4ba 100644
--- a/native/apple/Sources/DocsKit/Resources/ga.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/ga.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "Cuntais";
"Actual size" = "Fíormhéid";
-"Alignment" = "Ailíniú";
-"Block quote" = "Athfhriotal i mbloc";
-"Bold" = "Trom";
-"Bullet list" = "Liosta le hurchair";
"Cell contents" = "Ábhar na cille";
-"Clear formatting" = "Glan an fhormáidiú";
"Close this account’s document windows before signing out." = "Dún fuinneoga cáipéisí an chuntais seo sula síníonn tú amach.";
"Create a document to get started." = "Beidh na doiciméid a chruthaíonn tú anseo, na cinn is nua ar dtús.";
"Docs" = "Docs";
-"Document" = "Cáipéis";
-"Document inspector" = "Cigire cáipéise";
"Double-click to fit column to contents" = "Déchliceáil chun an colún a oiriúnú don ábhar";
"Edit %@" = "Cuir %@ in eagar";
"Export" = "Easpórtáil";
"Fit column to contents" = "Oiriúnaigh an colún don ábhar";
-"Font" = "Cló";
-"Format" = "Formáid";
"Heading %d" = "Ceannteideal %d";
"Home" = "Baile";
-"Indent" = "Méadaigh an eangú";
-"Inline code" = "Cód";
-"Inspector" = "Cigire cáipéise";
-"Italic" = "Iodálach";
"Markdown…" = "Markdown";
"New document" = "Doiciméad nua";
"No documents" = "Níl aon doiciméid ann fós";
"No recent documents" = "Níl aon doiciméid ann fós";
-"Normal" = "Téacs coirp";
-"Numbered list" = "Liosta uimhrithe";
"Open a document from Home" = "Oscail cáipéis ón mBaile";
-"Outdent" = "Laghdaigh an eangú";
"PDF…" = "PDF";
-"Pages" = "Leathanaigh";
-"Paragraph style" = "Stíl ailt";
"Print…" = "Priontáil";
"Recent" = "Le déanaí";
"Recent documents" = "Cáipéisí le déanaí";
@@ -43,9 +25,7 @@
"Select column %@" = "Roghnaigh colún %@";
"Select row %d" = "Roghnaigh ró %d";
"Shared" = "Comhroinnte leat";
-"Share…" = "Comhroinn";
"Sign out" = "Sínigh amach";
-"Size" = "Méid";
"Zoom" = "Súmáil";
"Untitled document" = "Doiciméad gan teideal";
diff --git a/native/apple/Sources/DocsKit/Resources/hi.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/hi.lproj/Localizable.strings
index 2f8bcc7..7db50e3 100644
--- a/native/apple/Sources/DocsKit/Resources/hi.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/hi.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "साइन इन करें…";
"native.leave.sending" = "Docs अभी भी बदलाव भेज रहा है। उनके सहेजे जाने के बाद फिर से कोशिश करें।";
"native.leave.openDocuments" = "पहले इस खाते के खुले दस्तावेज़ बंद करें।";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "इतिहास";
+"docs.editor.toolbar.group.style" = "शैली";
+"docs.editor.toolbar.group.text" = "टेक्स्ट";
+"docs.editor.toolbar.group.align" = "संरेखण";
+"docs.editor.toolbar.group.lists" = "सूचियाँ";
+"docs.editor.inspector.label" = "फ़ॉर्मैट";
+"docs.editor.inspector.toggle" = "फ़ॉर्मैट";
+"docs.share.action" = "शेयर करें…";
+"native.subtitle.saved" = "सेव हो गया";
+"native.subtitle.viewOnly" = "सिर्फ़ देखने के लिए";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "अब उपलब्ध नहीं";
+"native.unavailable.body" = "यह दस्तावेज़ मिटा दिया गया है या अब आपके साथ शेयर नहीं है।";
+"native.subtitle.signedOut" = "साइन आउट हो गया";
+"native.format.show" = "फ़ॉर्मैट दिखाएँ";
+"native.format.hide" = "फ़ॉर्मैट छिपाएँ";
diff --git a/native/apple/Sources/DocsKit/Resources/hi.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/hi.lproj/Mac.strings
index 3919264..9ed1825 100644
--- a/native/apple/Sources/DocsKit/Resources/hi.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/hi.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "खाते";
"Actual size" = "वास्तविक आकार";
-"Alignment" = "संरेखण";
-"Block quote" = "ब्लॉक उद्धरण";
-"Bold" = "बोल्ड";
-"Bullet list" = "बुलेट वाली सूची";
"Cell contents" = "सेल की सामग्री";
-"Clear formatting" = "फ़ॉर्मैटिंग हटाएँ";
"Close this account’s document windows before signing out." = "साइन आउट करने से पहले इस खाते की दस्तावेज़ विंडो बंद करें।";
"Create a document to get started." = "आपके बनाए दस्तावेज़ यहाँ दिखेंगे, सबसे नए पहले।";
"Docs" = "Docs";
-"Document" = "दस्तावेज़";
-"Document inspector" = "दस्तावेज़ निरीक्षक";
"Double-click to fit column to contents" = "सामग्री के अनुसार आकार बदलने के लिए डबल-क्लिक करें";
"Edit %@" = "%@ संपादित करें";
"Export" = "निर्यात";
"Fit column to contents" = "सामग्री के अनुसार स्तंभ का आकार बदलें";
-"Font" = "फ़ॉन्ट";
-"Format" = "फ़ॉर्मैट";
"Heading %d" = "शीर्षक %d";
"Home" = "होम";
-"Indent" = "इंडेंट बढ़ाएँ";
-"Inline code" = "कोड";
-"Inspector" = "दस्तावेज़ निरीक्षक";
-"Italic" = "इटैलिक";
"Markdown…" = "Markdown";
"New document" = "नया दस्तावेज़";
"No documents" = "अभी कोई दस्तावेज़ नहीं";
"No recent documents" = "अभी कोई दस्तावेज़ नहीं";
-"Normal" = "मुख्य पाठ";
-"Numbered list" = "क्रमांकित सूची";
"Open a document from Home" = "होम से दस्तावेज़ खोलें";
-"Outdent" = "इंडेंट घटाएँ";
"PDF…" = "PDF";
-"Pages" = "पृष्ठों में";
-"Paragraph style" = "अनुच्छेद शैली";
"Print…" = "प्रिंट करें";
"Recent" = "हाल के";
"Recent documents" = "हाल के दस्तावेज़";
@@ -43,9 +25,7 @@
"Select column %@" = "स्तंभ %@ चुनें";
"Select row %d" = "पंक्ति %d चुनें";
"Shared" = "आपके साथ शेयर किए गए";
-"Share…" = "शेयर करें";
"Sign out" = "साइन आउट करें";
-"Size" = "आकार";
"Zoom" = "ज़ूम";
"Untitled document" = "बिना शीर्षक का दस्तावेज़";
diff --git a/native/apple/Sources/DocsKit/Resources/ja.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/ja.lproj/Localizable.strings
index 5e26a65..94fda3f 100644
--- a/native/apple/Sources/DocsKit/Resources/ja.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/ja.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "サインイン…";
"native.leave.sending" = "Docs はまだ変更を送信中です。保存されてからもう一度お試しください。";
"native.leave.openDocuments" = "先にこのアカウントの開いている書類を閉じてください。";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "履歴";
+"docs.editor.toolbar.group.style" = "スタイル";
+"docs.editor.toolbar.group.text" = "テキスト";
+"docs.editor.toolbar.group.align" = "配置";
+"docs.editor.toolbar.group.lists" = "リスト";
+"docs.editor.inspector.label" = "書式";
+"docs.editor.inspector.toggle" = "書式";
+"docs.share.action" = "共有…";
+"native.subtitle.saved" = "保存済み";
+"native.subtitle.viewOnly" = "閲覧のみ";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "利用できなくなりました";
+"native.unavailable.body" = "このドキュメントは削除されたか、共有が解除されました。";
+"native.subtitle.signedOut" = "サインアウト済み";
+"native.format.show" = "書式を表示";
+"native.format.hide" = "書式を隠す";
diff --git a/native/apple/Sources/DocsKit/Resources/ja.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/ja.lproj/Mac.strings
index 1b9af06..ad9ff50 100644
--- a/native/apple/Sources/DocsKit/Resources/ja.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/ja.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "アカウント";
"Actual size" = "実際のサイズ";
-"Alignment" = "配置";
-"Block quote" = "引用ブロック";
-"Bold" = "太字";
-"Bullet list" = "箇条書き";
"Cell contents" = "セルの内容";
-"Clear formatting" = "書式をクリア";
"Close this account’s document windows before signing out." = "サインアウトする前に、このアカウントの書類ウインドウを閉じてください。";
"Create a document to get started." = "作成したドキュメントが新しい順にここに表示されます。";
"Docs" = "Docs";
-"Document" = "書類";
-"Document inspector" = "書類インスペクタ";
"Double-click to fit column to contents" = "ダブルクリックで列幅を内容に合わせる";
"Edit %@" = "%@ を編集";
"Export" = "書き出す";
"Fit column to contents" = "列幅を内容に合わせる";
-"Font" = "フォント";
-"Format" = "書式";
"Heading %d" = "見出し %d";
"Home" = "ホーム";
-"Indent" = "インデントを増やす";
-"Inline code" = "コード";
-"Inspector" = "書類インスペクタ";
-"Italic" = "斜体";
"Markdown…" = "Markdown";
"New document" = "新規ドキュメント";
"No documents" = "ドキュメントはまだありません";
"No recent documents" = "ドキュメントはまだありません";
-"Normal" = "本文";
-"Numbered list" = "番号付きリスト";
"Open a document from Home" = "ホームから書類を開く";
-"Outdent" = "インデントを減らす";
"PDF…" = "PDF";
-"Pages" = "ページ区切り";
-"Paragraph style" = "段落スタイル";
"Print…" = "プリント";
"Recent" = "最近使った項目";
"Recent documents" = "最近の書類";
@@ -43,9 +25,7 @@
"Select column %@" = "列 %@ を選択";
"Select row %d" = "行 %d を選択";
"Shared" = "あなたと共有";
-"Share…" = "共有";
"Sign out" = "サインアウト";
-"Size" = "サイズ";
"Zoom" = "ズーム";
"Untitled document" = "無題のドキュメント";
diff --git a/native/apple/Sources/DocsKit/Resources/pt.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/pt.lproj/Localizable.strings
index 2879eac..71b299a 100644
--- a/native/apple/Sources/DocsKit/Resources/pt.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/pt.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "Iniciar sessão…";
"native.leave.sending" = "O Docs ainda está a enviar alterações. Tente de novo quando estiverem guardadas.";
"native.leave.openDocuments" = "Feche primeiro os documentos abertos desta conta.";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "Histórico";
+"docs.editor.toolbar.group.style" = "Estilo";
+"docs.editor.toolbar.group.text" = "Texto";
+"docs.editor.toolbar.group.align" = "Alinhamento";
+"docs.editor.toolbar.group.lists" = "Listas";
+"docs.editor.inspector.label" = "Formato";
+"docs.editor.inspector.toggle" = "Formato";
+"docs.share.action" = "Partilhar…";
+"native.subtitle.saved" = "Guardado";
+"native.subtitle.viewOnly" = "Só leitura";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "Já não está disponível";
+"native.unavailable.body" = "Este documento foi eliminado ou já não está partilhado consigo.";
+"native.subtitle.signedOut" = "Sessão terminada";
+"native.format.show" = "Mostrar Formato";
+"native.format.hide" = "Ocultar Formato";
diff --git a/native/apple/Sources/DocsKit/Resources/pt.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/pt.lproj/Mac.strings
index a859c91..c037529 100644
--- a/native/apple/Sources/DocsKit/Resources/pt.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/pt.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "Contas";
"Actual size" = "Tamanho real";
-"Alignment" = "Alinhamento";
-"Block quote" = "Citação em bloco";
-"Bold" = "Negrito";
-"Bullet list" = "Lista com marcas";
"Cell contents" = "Conteúdo da célula";
-"Clear formatting" = "Limpar formatação";
"Close this account’s document windows before signing out." = "Feche as janelas de documentos desta conta antes de terminar a sessão.";
"Create a document to get started." = "Os documentos que criar aparecem aqui, começando pelos mais recentes.";
"Docs" = "Docs";
-"Document" = "Documento";
-"Document inspector" = "Inspetor do documento";
"Double-click to fit column to contents" = "Clique duas vezes para ajustar a coluna ao conteúdo";
"Edit %@" = "Editar %@";
"Export" = "Exportar";
"Fit column to contents" = "Ajustar coluna ao conteúdo";
-"Font" = "Tipo de letra";
-"Format" = "Formato";
"Heading %d" = "Título %d";
"Home" = "Início";
-"Indent" = "Aumentar avanço";
-"Inline code" = "Código";
-"Inspector" = "Inspetor do documento";
-"Italic" = "Itálico";
"Markdown…" = "Markdown";
"New document" = "Novo documento";
"No documents" = "Ainda não há documentos";
"No recent documents" = "Ainda não há documentos";
-"Normal" = "Corpo do texto";
-"Numbered list" = "Lista numerada";
"Open a document from Home" = "Abra um documento no Início";
-"Outdent" = "Diminuir avanço";
"PDF…" = "PDF";
-"Pages" = "Paginado";
-"Paragraph style" = "Estilo de parágrafo";
"Print…" = "Imprimir";
"Recent" = "Recentes";
"Recent documents" = "Documentos recentes";
@@ -43,9 +25,7 @@
"Select column %@" = "Selecionar coluna %@";
"Select row %d" = "Selecionar linha %d";
"Shared" = "Partilhados consigo";
-"Share…" = "Partilhar";
"Sign out" = "Terminar sessão";
-"Size" = "Tamanho";
"Zoom" = "Zoom";
"Untitled document" = "Documento sem título";
diff --git a/native/apple/Sources/DocsKit/Resources/ru.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/ru.lproj/Localizable.strings
index 980a775..1ad2318 100644
--- a/native/apple/Sources/DocsKit/Resources/ru.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/ru.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "Войти…";
"native.leave.sending" = "Docs ещё отправляет изменения. Повторите попытку, когда они сохранятся.";
"native.leave.openDocuments" = "Сначала закройте открытые документы этой учётной записи.";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "История";
+"docs.editor.toolbar.group.style" = "Стиль";
+"docs.editor.toolbar.group.text" = "Текст";
+"docs.editor.toolbar.group.align" = "Выравнивание";
+"docs.editor.toolbar.group.lists" = "Списки";
+"docs.editor.inspector.label" = "Формат";
+"docs.editor.inspector.toggle" = "Формат";
+"docs.share.action" = "Поделиться…";
+"native.subtitle.saved" = "Сохранено";
+"native.subtitle.viewOnly" = "Только просмотр";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "Больше недоступен";
+"native.unavailable.body" = "Этот документ удалён или больше не доступен вам.";
+"native.subtitle.signedOut" = "Вы вышли";
+"native.format.show" = "Показать панель «Формат»";
+"native.format.hide" = "Скрыть панель «Формат»";
diff --git a/native/apple/Sources/DocsKit/Resources/ru.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/ru.lproj/Mac.strings
index 83aa91e..a33de18 100644
--- a/native/apple/Sources/DocsKit/Resources/ru.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/ru.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "Учётные записи";
"Actual size" = "Фактический размер";
-"Alignment" = "Выравнивание";
-"Block quote" = "Блок цитаты";
-"Bold" = "Полужирный";
-"Bullet list" = "Маркированный список";
"Cell contents" = "Содержимое ячейки";
-"Clear formatting" = "Очистить форматирование";
"Close this account’s document windows before signing out." = "Перед выходом закройте окна документов этой учётной записи.";
"Create a document to get started." = "Созданные вами документы появятся здесь, начиная с самых новых.";
"Docs" = "Docs";
-"Document" = "Документ";
-"Document inspector" = "Инспектор документа";
"Double-click to fit column to contents" = "Дважды щёлкните для подгонки ширины столбца";
"Edit %@" = "Изменить %@";
"Export" = "Экспорт";
"Fit column to contents" = "Подогнать ширину столбца";
-"Font" = "Шрифт";
-"Format" = "Формат";
"Heading %d" = "Заголовок %d";
"Home" = "Главная";
-"Indent" = "Увеличить отступ";
-"Inline code" = "Код";
-"Inspector" = "Инспектор документа";
-"Italic" = "Курсив";
"Markdown…" = "Markdown";
"New document" = "Новый документ";
"No documents" = "Документов пока нет";
"No recent documents" = "Документов пока нет";
-"Normal" = "Основной текст";
-"Numbered list" = "Нумерованный список";
"Open a document from Home" = "Откройте документ на главной";
-"Outdent" = "Уменьшить отступ";
"PDF…" = "PDF";
-"Pages" = "Постраничный";
-"Paragraph style" = "Стиль абзаца";
"Print…" = "Печать";
"Recent" = "Недавние";
"Recent documents" = "Недавние документы";
@@ -43,9 +25,7 @@
"Select column %@" = "Выбрать столбец %@";
"Select row %d" = "Выбрать строку %d";
"Shared" = "Доступные вам";
-"Share…" = "Поделиться";
"Sign out" = "Выйти";
-"Size" = "Размер";
"Zoom" = "Масштаб";
"Untitled document" = "Документ без названия";
diff --git a/native/apple/Sources/DocsKit/Resources/vi.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/vi.lproj/Localizable.strings
index 6584734..d631de4 100644
--- a/native/apple/Sources/DocsKit/Resources/vi.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/vi.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "Đăng nhập…";
"native.leave.sending" = "Docs vẫn đang gửi các thay đổi. Hãy thử lại khi chúng đã được lưu.";
"native.leave.openDocuments" = "Hãy đóng các tài liệu đang mở của tài khoản này trước.";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "Lịch sử";
+"docs.editor.toolbar.group.style" = "Kiểu";
+"docs.editor.toolbar.group.text" = "Văn bản";
+"docs.editor.toolbar.group.align" = "Căn lề";
+"docs.editor.toolbar.group.lists" = "Danh sách";
+"docs.editor.inspector.label" = "Định dạng";
+"docs.editor.inspector.toggle" = "Định dạng";
+"docs.share.action" = "Chia sẻ…";
+"native.subtitle.saved" = "Đã lưu";
+"native.subtitle.viewOnly" = "Chỉ xem";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "Không còn khả dụng";
+"native.unavailable.body" = "Tài liệu này đã bị xóa hoặc không còn được chia sẻ với bạn.";
+"native.subtitle.signedOut" = "Đã đăng xuất";
+"native.format.show" = "Hiện Định dạng";
+"native.format.hide" = "Ẩn Định dạng";
diff --git a/native/apple/Sources/DocsKit/Resources/vi.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/vi.lproj/Mac.strings
index fb823d0..ad1b733 100644
--- a/native/apple/Sources/DocsKit/Resources/vi.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/vi.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "Tài khoản";
"Actual size" = "Kích thước thực";
-"Alignment" = "Căn chỉnh";
-"Block quote" = "Khối trích dẫn";
-"Bold" = "Đậm";
-"Bullet list" = "Danh sách dấu đầu dòng";
"Cell contents" = "Nội dung ô";
-"Clear formatting" = "Xóa định dạng";
"Close this account’s document windows before signing out." = "Đóng các cửa sổ tài liệu của tài khoản này trước khi đăng xuất.";
"Create a document to get started." = "Tài liệu bạn tạo sẽ xuất hiện ở đây, mới nhất trước.";
"Docs" = "Docs";
-"Document" = "Tài liệu";
-"Document inspector" = "Thuộc tính tài liệu";
"Double-click to fit column to contents" = "Nhấp đúp để khớp cột với nội dung";
"Edit %@" = "Sửa %@";
"Export" = "Xuất";
"Fit column to contents" = "Khớp cột với nội dung";
-"Font" = "Phông chữ";
-"Format" = "Định dạng";
"Heading %d" = "Tiêu đề %d";
"Home" = "Trang chủ";
-"Indent" = "Tăng thụt lề";
-"Inline code" = "Mã";
-"Inspector" = "Thuộc tính tài liệu";
-"Italic" = "Nghiêng";
"Markdown…" = "Markdown";
"New document" = "Tài liệu mới";
"No documents" = "Chưa có tài liệu";
"No recent documents" = "Chưa có tài liệu";
-"Normal" = "Văn bản nội dung";
-"Numbered list" = "Danh sách đánh số";
"Open a document from Home" = "Mở tài liệu từ Trang chủ";
-"Outdent" = "Giảm thụt lề";
"PDF…" = "PDF";
-"Pages" = "Theo trang";
-"Paragraph style" = "Kiểu đoạn văn";
"Print…" = "In";
"Recent" = "Gần đây";
"Recent documents" = "Tài liệu gần đây";
@@ -43,9 +25,7 @@
"Select column %@" = "Chọn cột %@";
"Select row %d" = "Chọn hàng %d";
"Shared" = "Được chia sẻ với bạn";
-"Share…" = "Chia sẻ";
"Sign out" = "Đăng xuất";
-"Size" = "Kích cỡ";
"Zoom" = "Thu phóng";
"Untitled document" = "Tài liệu chưa đặt tên";
diff --git a/native/apple/Sources/DocsKit/Resources/yue.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/yue.lproj/Localizable.strings
index d5f470a..04dc668 100644
--- a/native/apple/Sources/DocsKit/Resources/yue.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/yue.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "登入…";
"native.leave.sending" = "Docs 仲傳緊啲改動。儲存好之後再試吓。";
"native.leave.openDocuments" = "請先閂咗呢個帳戶開緊嘅文件。";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "記錄";
+"docs.editor.toolbar.group.style" = "樣式";
+"docs.editor.toolbar.group.text" = "文字";
+"docs.editor.toolbar.group.align" = "對齊";
+"docs.editor.toolbar.group.lists" = "清單";
+"docs.editor.inspector.label" = "格式";
+"docs.editor.inspector.toggle" = "格式";
+"docs.share.action" = "分享…";
+"native.subtitle.saved" = "已儲存";
+"native.subtitle.viewOnly" = "只可以睇";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "已經冇得用";
+"native.unavailable.body" = "呢份文件已經刪除咗,或者冇再同你分享。";
+"native.subtitle.signedOut" = "已經登出";
+"native.format.show" = "顯示格式";
+"native.format.hide" = "隱藏格式";
diff --git a/native/apple/Sources/DocsKit/Resources/yue.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/yue.lproj/Mac.strings
index 2657f81..08dc626 100644
--- a/native/apple/Sources/DocsKit/Resources/yue.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/yue.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "帳戶";
"Actual size" = "實際大小";
-"Alignment" = "對齊";
-"Block quote" = "引文區塊";
-"Bold" = "粗體";
-"Bullet list" = "項目符號清單";
"Cell contents" = "儲存格內容";
-"Clear formatting" = "清除格式";
"Close this account’s document windows before signing out." = "登出前請先關閉此帳戶嘅文件視窗。";
"Create a document to get started." = "你建立嘅文件會喺呢度顯示,最新嘅排最前。";
"Docs" = "Docs";
-"Document" = "文件";
-"Document inspector" = "文件檢查器";
"Double-click to fit column to contents" = "按兩下以按內容調整欄寬";
"Edit %@" = "編輯 %@";
"Export" = "輸出";
"Fit column to contents" = "按內容調整欄寬";
-"Font" = "字體";
-"Format" = "格式";
"Heading %d" = "標題 %d";
"Home" = "主頁";
-"Indent" = "增加縮排";
-"Inline code" = "程式碼";
-"Inspector" = "文件檢查器";
-"Italic" = "斜體";
"Markdown…" = "Markdown";
"New document" = "新增文件";
"No documents" = "仲未有文件";
"No recent documents" = "仲未有文件";
-"Normal" = "內文";
-"Numbered list" = "編號清單";
"Open a document from Home" = "由主頁開啟文件";
-"Outdent" = "減少縮排";
"PDF…" = "PDF";
-"Pages" = "分頁";
-"Paragraph style" = "段落樣式";
"Print…" = "列印";
"Recent" = "最近項目";
"Recent documents" = "最近文件";
@@ -43,9 +25,7 @@
"Select column %@" = "選取 %@ 欄";
"Select row %d" = "選取第 %d 行";
"Shared" = "同你分享嘅文件";
-"Share…" = "分享";
"Sign out" = "登出";
-"Size" = "大小";
"Zoom" = "縮放";
"Untitled document" = "未命名文件";
diff --git a/native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Localizable.strings b/native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Localizable.strings
index 2f929b0..76610d3 100644
--- a/native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Localizable.strings
+++ b/native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Localizable.strings
@@ -205,3 +205,21 @@
"native.settings.signIn" = "登录…";
"native.leave.sending" = "Docs 仍在发送更改。保存后请重试。";
"native.leave.openDocuments" = "请先关闭此账户中打开的文档。";
+
+/* S2a: the Mac document window's header, subtitle and Format inspector (spec 2026-11-22 §1, §6, §8). */
+"docs.editor.toolbar.history" = "历史记录";
+"docs.editor.toolbar.group.style" = "样式";
+"docs.editor.toolbar.group.text" = "文本";
+"docs.editor.toolbar.group.align" = "对齐";
+"docs.editor.toolbar.group.lists" = "列表";
+"docs.editor.inspector.label" = "格式";
+"docs.editor.inspector.toggle" = "格式";
+"docs.share.action" = "共享…";
+"native.subtitle.saved" = "已保存";
+"native.subtitle.viewOnly" = "仅查看";
+"native.subtitle.joined" = "%1$@ · %2$@";
+"native.subtitle.unavailable" = "已不可用";
+"native.unavailable.body" = "此文档已被删除,或不再与您共享。";
+"native.subtitle.signedOut" = "已退出登录";
+"native.format.show" = "显示格式";
+"native.format.hide" = "隐藏格式";
diff --git a/native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Mac.strings b/native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Mac.strings
index 6db2e5c..e5abdb6 100644
--- a/native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Mac.strings
+++ b/native/apple/Sources/DocsKit/Resources/zh-Hans.lproj/Mac.strings
@@ -1,39 +1,21 @@
"Accounts" = "账户";
"Actual size" = "实际大小";
-"Alignment" = "对齐";
-"Block quote" = "块引用";
-"Bold" = "粗体";
-"Bullet list" = "项目符号列表";
"Cell contents" = "单元格内容";
-"Clear formatting" = "清除格式";
"Close this account’s document windows before signing out." = "退出登录前请关闭此账户的文档窗口。";
"Create a document to get started." = "您创建的文档会显示在这里,最新的排在最前面。";
"Docs" = "Docs";
-"Document" = "文档";
-"Document inspector" = "文档检查器";
"Double-click to fit column to contents" = "双击以根据内容调整列宽";
"Edit %@" = "编辑 %@";
"Export" = "导出";
"Fit column to contents" = "根据内容调整列宽";
-"Font" = "字体";
-"Format" = "格式";
"Heading %d" = "标题 %d";
"Home" = "主页";
-"Indent" = "增加缩进";
-"Inline code" = "代码";
-"Inspector" = "文档检查器";
-"Italic" = "斜体";
"Markdown…" = "Markdown";
"New document" = "新建文档";
"No documents" = "还没有文档";
"No recent documents" = "还没有文档";
-"Normal" = "正文";
-"Numbered list" = "编号列表";
"Open a document from Home" = "从主页打开文档";
-"Outdent" = "减少缩进";
"PDF…" = "PDF";
-"Pages" = "分页";
-"Paragraph style" = "段落样式";
"Print…" = "打印";
"Recent" = "最近项目";
"Recent documents" = "最近文档";
@@ -43,9 +25,7 @@
"Select column %@" = "选择 %@ 列";
"Select row %d" = "选择第 %d 行";
"Shared" = "与您共享";
-"Share…" = "共享";
"Sign out" = "退出登录";
-"Size" = "大小";
"Zoom" = "缩放";
"Untitled document" = "无标题文档";
diff --git a/native/apple/Tests/DocsKitTests/DocsAccessTests.swift b/native/apple/Tests/DocsKitTests/DocsAccessTests.swift
new file mode 100644
index 0000000..0367f25
--- /dev/null
+++ b/native/apple/Tests/DocsKitTests/DocsAccessTests.swift
@@ -0,0 +1,132 @@
+import Foundation
+import RastrilloApple
+import RastrilloNative
+import RastrilloTestSupport
+import XCTest
+@testable import DocsKit
+
+/// Spec §6 and plan S2a step 4: what `refreshAccess` does with each answer.
+/// 401 pauses input and leaves the access alone; 403 and 404 are "No longer
+/// available", left again on a later 200; a 200 without can_write is View
+/// only, in place.
+@MainActor final class DocsAccessTests: XCTestCase {
+ private func open() async throws -> (DocsModel, AccessServer) {
+ let server = AccessServer()
+ try await server.inner.seed([.object(["type": .string("paragraph"), "children": .array([
+ .object(["type": .string("text"), "runs": .array([.object(["insert": .string("Hello"), "marks": .object([:])])])])])])])
+ let connectivity = NativeConnectivity(source: ScriptedPathSource(.satisfied))
+ let account = DocsOfflineAccount(store: EphemeralDocsStore(), accountID: UUID().uuidString, connectivity: connectivity, transport: { server })
+ let model = DocsModel(transport: { server }, connectivity: connectivity, offlineAccount: account)
+ await model.open("doc")
+ XCTAssertNotNil(model.projection, "the document opened")
+ XCTAssertEqual(model.documentAccess, .writable)
+ return (model, server)
+ }
+
+ /// Asks again, as the window does after a refused write or stream.
+ private func revalidate(_ model: DocsModel) async {
+ model.inputPaused = true
+ await model.retry()
+ }
+
+ private func row(_ model: DocsModel) -> DocsSubtitleRow {
+ DocsSubtitleRow(access: model.documentAccess, status: .saved, savingShown: false, loading: model.loading)
+ }
+
+ func testA403IsNoLongerAvailableAndALater200LeavesIt() async throws {
+ let (model, server) = try await open()
+ await server.answer(403)
+ await revalidate(model)
+ XCTAssertEqual(model.documentAccess, .unavailable)
+ XCTAssertEqual(row(model), .unavailable)
+ XCTAssertTrue(model.inputPaused, "the editor becomes read-only")
+ XCTAssertFalse(model.enqueue(["op": .string("display_edit"), "at": .number(0), "length": .number(0), "text": .string("x")]))
+
+ await server.answer(200, canWrite: true)
+ await revalidate(model)
+ XCTAssertEqual(model.documentAccess, .writable, "re-shared or restored: row 1 is left")
+ XCTAssertEqual(row(model), .saved)
+ XCTAssertFalse(model.inputPaused)
+ await model.stop()
+ }
+
+ func testA404IsNoLongerAvailable() async throws {
+ let (model, server) = try await open()
+ await server.answer(404)
+ await revalidate(model)
+ XCTAssertEqual(model.documentAccess, .unavailable)
+ XCTAssertEqual(model.detail?.can_write, false)
+ await model.stop()
+ }
+
+ func testA401PausesInputAndLeavesTheAccessAlone() async throws {
+ let (model, server) = try await open()
+ await server.answer(401)
+ await revalidate(model)
+ XCTAssertTrue(model.sessionPaused, "paused for the session's own reason")
+ XCTAssertFalse(model.enqueue(["op": .string("display_edit"), "at": .number(0), "length": .number(0), "text": .string("x")]))
+ XCTAssertEqual(model.detail?.can_write, true, "a 401 never touches can_write")
+ XCTAssertEqual(model.documentAccess, .writable, "and so no reader chrome")
+ XCTAssertTrue(model.inputBlocked, "input pauses while the session is re-minted")
+
+ // The re-minted session's 200 resumes input, can_write unchanged.
+ await server.answer(200, canWrite: true)
+ await revalidate(model)
+ XCTAssertFalse(model.inputPaused)
+ XCTAssertEqual(model.documentAccess, .writable)
+ await model.stop()
+ }
+
+ /// The re-minted session's 200 clears only the 401's own pause: input
+ /// paused for another reason (here a recovery) stays paused.
+ func testThe401ResumeLeavesAnotherPauseAlone() async throws {
+ let (model, server) = try await open()
+ model.inputPaused = true; model.errorKey = "native.recovered"
+ await server.answer(401)
+ await model.revalidateAccess()
+ XCTAssertTrue(model.sessionPaused)
+ await server.answer(200, canWrite: true)
+ await model.revalidateAccess()
+ XCTAssertFalse(model.sessionPaused, "the 401's pause is lifted")
+ XCTAssertTrue(model.inputPaused, "the recovery's pause is not the 401's to lift")
+ XCTAssertTrue(model.inputBlocked)
+ await model.stop()
+ }
+
+ func testA200WithoutWriteIsViewOnlyInPlace() async throws {
+ let (model, server) = try await open()
+ model.selection = NSRange(location: 2, length: 1)
+ let identity = model.editorIdentity
+ await server.answer(200, canWrite: false)
+ await revalidate(model)
+ XCTAssertEqual(model.documentAccess, .readOnly)
+ XCTAssertEqual(row(model), .viewOnly)
+ XCTAssertTrue(model.inputPaused)
+ XCTAssertEqual(model.editorIdentity, identity, "applied in place: the same text view")
+ XCTAssertEqual(model.selection, NSRange(location: 2, length: 1), "the selection is kept")
+ await model.stop()
+ }
+}
+
+/// LoopServer, with the document's detail answer under the test's control.
+actor AccessServer: NativeTransport {
+ nonisolated let origin = URL(string: "https://docs.access.invalid")!
+ let inner = LoopServer()
+ private var status = 200
+ private var canWrite = true
+
+ func answer(_ status: Int, canWrite: Bool = true) { self.status = status; self.canWrite = canWrite }
+
+ func responseDetails(_ path: String, method: String, body: Data?, contentType: String, maxBytes: Int) async throws -> NativeResponse {
+ if method == "GET", path == "/d/doc" {
+ guard status == 200 else { return NativeResponse(data: Data(), status: status, headers: [:]) }
+ let detail = DocumentDetail(sqid: "doc", title: "Access", guid: "render-loop", can_write: canWrite, can_share: canWrite)
+ return NativeResponse(data: try JSONEncoder().encode(detail), status: 200, headers: [:])
+ }
+ return try await inner.responseDetails(path, method: method, body: body, contentType: contentType, maxBytes: maxBytes)
+ }
+ func stream(_ path: String, onOpen: @Sendable () async throws -> Void, onLine: @Sendable (String) async throws -> Void) async throws {
+ try await inner.stream(path, onOpen: onOpen, onLine: onLine)
+ }
+ func download(_ path: String, to destination: URL) async throws { throw NativeClientError.notFound }
+}
diff --git a/native/apple/Tests/DocsKitTests/DocsDeskLayoutTests.swift b/native/apple/Tests/DocsKitTests/DocsDeskLayoutTests.swift
new file mode 100644
index 0000000..d46c327
--- /dev/null
+++ b/native/apple/Tests/DocsKitTests/DocsDeskLayoutTests.swift
@@ -0,0 +1,60 @@
+import XCTest
+@testable import DocsKit
+
+/// Spec §1, "Page centring": the web's clamp in window points at the six
+/// widths, both zooms, inspector open and closed, the 1,108pt boundary,
+/// and the paddings swapped right to left.
+final class DocsDeskLayoutTests: XCTestCase {
+ /// The page's width in window points: 612 × 4/3 × zoom.
+ private func page(_ zoom: CGFloat) -> CGFloat { DocsDeskLayout.paperWidth * 4 / 3 * zoom }
+
+ func testTheReserveIsTheInspectorAndItsGaps() {
+ XCTAssertEqual(DocsDeskLayout.reserve, 276)
+ }
+
+ func testClosedThePageIsPlainlyCentred() {
+ for zoom in [1.0, 1.5] as [CGFloat] {
+ for width in [1800, 1440, 1280, 1108, 1000, 920] as [CGFloat] {
+ XCTAssertEqual(DocsDeskLayout.inspectorPadding(width: width, page: page(zoom), inspector: false), 16)
+ let x = DocsDeskLayout.pageX(width: width, page: page(zoom), inspector: nil)
+ XCTAssertEqual(x, max(16, (width - page(zoom)) / 2), accuracy: 0.001, "width \(width) zoom \(zoom)")
+ }
+ }
+ }
+
+ /// E = clamp(16, 16 + P + 2R − W, R) and the page centred in [16, W − E].
+ func testOpenFollowsTheWebsClamp() {
+ let expected: [(CGFloat, CGFloat, CGFloat, CGFloat)] = [
+ // width, zoom, E, page's left edge
+ (1800, 1, 16, 492), (1440, 1, 16, 312), (1280, 1, 104, 188), (1108, 1, 276, 16), (1000, 1, 276, 16), (920, 1, 276, 16),
+ (1800, 1.5, 16, 288), (1440, 1.5, 276, 16), (1280, 1.5, 276, 16), (1108, 1.5, 276, 16), (1000, 1.5, 276, 16), (920, 1.5, 276, 16),
+ ]
+ for (width, zoom, e, x) in expected {
+ XCTAssertEqual(DocsDeskLayout.inspectorPadding(width: width, page: page(zoom), inspector: true), e, accuracy: 0.001, "E at \(width) zoom \(zoom)")
+ XCTAssertEqual(DocsDeskLayout.pageX(width: width, page: page(zoom), inspector: .right), x, accuracy: 0.001, "x at \(width) zoom \(zoom)")
+ }
+ }
+
+ /// At W = P + 16 + R the page just clears the inspector (16pt apart);
+ /// a point narrower and it starts to run under it.
+ func testTheBoundaryAtZoom100IsOneThousandOneHundredAndEight() {
+ let p = page(1)
+ let boundary = p + 16 + DocsDeskLayout.reserve
+ XCTAssertEqual(boundary, 1108, accuracy: 0.001)
+ let x = DocsDeskLayout.pageX(width: boundary, page: p, inspector: .right)
+ let inspectorLeft = boundary - DocsDeskLayout.inspectorInset - DocsDeskLayout.inspectorWidth
+ XCTAssertEqual(inspectorLeft - (x + p), 16, accuracy: 0.001)
+ let narrower = DocsDeskLayout.pageX(width: boundary - 1, page: p, inspector: .right)
+ XCTAssertGreaterThan(narrower + p, boundary - 1 - DocsDeskLayout.inspectorInset - DocsDeskLayout.inspectorWidth - 16)
+ XCTAssertEqual(narrower, 16, "the page's leading edge stays at 16; it never shrinks")
+ }
+
+ /// Right to left the inspector is on the left and the paddings swap.
+ func testRightToLeftMirrors() {
+ for (width, zoom) in [(1800, 1), (1440, 1), (1280, 1), (1108, 1), (1800, 1.5)] as [(CGFloat, CGFloat)] {
+ let ltr = DocsDeskLayout.pageX(width: width, page: page(zoom), inspector: .right)
+ let rtl = DocsDeskLayout.pageX(width: width, page: page(zoom), inspector: .left)
+ XCTAssertEqual(rtl, width - ltr - page(zoom), accuracy: 0.001, "width \(width)")
+ }
+ }
+}
diff --git a/native/apple/Tests/DocsKitTests/DocsHistoryObservationTests.swift b/native/apple/Tests/DocsKitTests/DocsHistoryObservationTests.swift
new file mode 100644
index 0000000..6b55586
--- /dev/null
+++ b/native/apple/Tests/DocsKitTests/DocsHistoryObservationTests.swift
@@ -0,0 +1,74 @@
+#if os(macOS)
+import Foundation
+import Observation
+import RastrilloApple
+import RastrilloNative
+import RastrilloTestSupport
+import Synchronization
+import XCTest
+@testable import DocsKit
+
+/// The merge hazard Fable named on #169: S1a takes `DocsModel.projection`
+/// out of observation, and three S2a readers (the undo/redo pill, Tools ▸
+/// Word count's enabled state, the word-count sheet) would then silently
+/// stop updating. These pin each one changing after an edit, through the
+/// observation SwiftUI uses, so a merge that loses it goes red.
+@MainActor final class DocsHistoryObservationTests: XCTestCase {
+ private func open() async throws -> DocsModel {
+ let server = AccessServer()
+ try await server.inner.seed([.object(["type": .string("paragraph"), "children": .array([
+ .object(["type": .string("text"), "runs": .array([.object(["insert": .string("Hello"), "marks": .object([:])])])])])])])
+ let connectivity = NativeConnectivity(source: ScriptedPathSource(.satisfied))
+ let account = DocsOfflineAccount(store: EphemeralDocsStore(), accountID: UUID().uuidString, connectivity: connectivity, transport: { server })
+ let model = DocsModel(transport: { server }, connectivity: connectivity, offlineAccount: account)
+ await model.open("doc")
+ return model
+ }
+
+ private func type(_ model: DocsModel) async throws {
+ XCTAssertTrue(model.enqueue(["op": .string("display_edit"), "at": .number(0), "length": .number(0), "text": .string("X")]))
+ let deadline = Date().addingTimeInterval(5)
+ while !model.history.canUndo {
+ guard Date() < deadline else { return XCTFail("the edit never became undoable") }
+ try await Task.sleep(for: .milliseconds(10))
+ }
+ }
+
+ /// Whether evaluating `read` registered a dependency that `change` fires.
+ private func observes(_ read: () -> Void, after change: () async throws -> Void) async throws -> Bool {
+ let fired = Mutex(false)
+ withObservationTracking(read) { fired.withLock { $0 = true } }
+ try await change()
+ return fired.withLock { $0 }
+ }
+
+ func testTheUndoPillFollowsAnEdit() async throws {
+ let model = try await open()
+ XCTAssertFalse(model.history.canUndo)
+ let pill = DocsUndoRedoPill(model: model)
+ let followed = try await observes({ _ = pill.body }) { try await type(model) }
+ XCTAssertTrue(followed, "the pill's body re-evaluates when undo becomes possible")
+ XCTAssertTrue(model.history.canUndo)
+ await model.stop()
+ }
+
+ func testWordCountsEnabledStateFollowsTheDocumentOpening() async throws {
+ let server = AccessServer()
+ try await server.inner.seed([])
+ let model = DocsModel(transport: { server }, connectivity: NativeConnectivity(source: ScriptedPathSource(.satisfied)))
+ XCTAssertFalse(model.history.loaded, "nothing open: Word count is disabled")
+ let followed = try await observes({ _ = model.history.loaded }) { await model.open("doc") }
+ XCTAssertTrue(followed)
+ XCTAssertTrue(model.history.loaded)
+ await model.stop()
+ }
+
+ func testTheWordCountSheetFollowsAnEdit() async throws {
+ let model = try await open()
+ let sheet = DocsLiveWordCountSheet(model: model) {}
+ let followed = try await observes({ _ = sheet.body }) { try await type(model) }
+ XCTAssertTrue(followed, "the open sheet recounts as the document changes")
+ await model.stop()
+ }
+}
+#endif
diff --git a/native/apple/Tests/DocsKitTests/DocsInspectorStyleTests.swift b/native/apple/Tests/DocsKitTests/DocsInspectorStyleTests.swift
new file mode 100644
index 0000000..c1bfbef
--- /dev/null
+++ b/native/apple/Tests/DocsKitTests/DocsInspectorStyleTests.swift
@@ -0,0 +1,18 @@
+#if os(macOS)
+import XCTest
+@testable import DocsKit
+
+/// The Format inspector's style pop-up (Fable on #169, finding 5): a
+/// selection in Heading 4–6 shows that level, not the last style shown.
+final class DocsInspectorStyleTests: XCTestCase {
+ @MainActor func testHeadingsFourToSixShowTheirOwnLevel() {
+ let en = DocsStrings(locale: Locale(identifier: "en"))
+ XCTAssertEqual(DocsFormatInspector.styleEntries(selected: "paragraph", strings: en).map(\.id), ["paragraph", "heading1", "heading2", "heading3"])
+ let five = DocsFormatInspector.styleEntries(selected: "heading5", strings: en)
+ XCTAssertEqual(five.last?.id, "heading5", "the pop-up can select it")
+ XCTAssertEqual(five.last?.title, "Heading 5")
+ let ru = DocsFormatInspector.styleEntries(selected: "heading4", strings: DocsStrings(locale: Locale(identifier: "ru")))
+ XCTAssertEqual(ru.last?.title, "Заголовок 4")
+ }
+}
+#endif
diff --git a/native/apple/Tests/DocsKitTests/DocsRenameTests.swift b/native/apple/Tests/DocsKitTests/DocsRenameTests.swift
new file mode 100644
index 0000000..4ac8df7
--- /dev/null
+++ b/native/apple/Tests/DocsKitTests/DocsRenameTests.swift
@@ -0,0 +1,89 @@
+import Foundation
+import RastrilloApple
+import RastrilloNative
+import RastrilloTestSupport
+import XCTest
+@testable import DocsKit
+
+/// Rename in place (spec §1; Fable on #169, finding 2): a refused commit
+/// never leaves a field that later focus losses cannot commit, and a reader
+/// never gets an editable title.
+@MainActor final class DocsRenameTests: XCTestCase {
+ func testAnAcceptedReturnFinishesTheRename() {
+ var commits = 0, cancels = 0
+ let session = DocsRenameSession(commit: { commits += 1; return true }, cancel: { cancels += 1 })
+ XCTAssertEqual(session.returnPressed(), .committed)
+ XCTAssertEqual(session.focusLost(), .finished, "the field going away afterwards commits nothing more")
+ XCTAssertEqual(commits, 1); XCTAssertEqual(cancels, 0)
+ }
+
+ /// Refused on Return: still editing, and the next Return or focus loss
+ /// tries again rather than being swallowed.
+ func testARefusedReturnKeepsEditingAndTheNextAttemptCommits() {
+ var accept = false, commits = 0
+ let session = DocsRenameSession(commit: { commits += 1; return accept }, cancel: {})
+ XCTAssertEqual(session.returnPressed(), .keepEditing)
+ XCTAssertFalse(session.isFinished)
+ accept = true
+ XCTAssertEqual(session.focusLost(), .committed, "a later focus loss commits")
+ XCTAssertEqual(commits, 2)
+ }
+
+ /// Refused on focus loss: the title goes back as it was.
+ func testARefusedFocusLossReverts() {
+ var cancels = 0
+ let session = DocsRenameSession(commit: { false }, cancel: { cancels += 1 })
+ XCTAssertEqual(session.returnPressed(), .keepEditing)
+ XCTAssertEqual(session.focusLost(), .reverted)
+ XCTAssertEqual(cancels, 1)
+ XCTAssertTrue(session.isFinished)
+ }
+
+ func testEscapePutsTheTitleBack() {
+ var commits = 0, cancels = 0
+ let session = DocsRenameSession(commit: { commits += 1; return true }, cancel: { cancels += 1 })
+ session.escape()
+ XCTAssertEqual(session.focusLost(), .finished)
+ XCTAssertEqual(commits, 0); XCTAssertEqual(cancels, 1)
+ }
+
+ func testAReaderNeverGetsAnEditableTitle() {
+ XCTAssertTrue(DocsTitleArea.showsField(renaming: true, access: .writable))
+ XCTAssertFalse(DocsTitleArea.showsField(renaming: true, access: .readOnly))
+ XCTAssertFalse(DocsTitleArea.showsField(renaming: true, access: .unavailable))
+ XCTAssertFalse(DocsTitleArea.showsField(renaming: false, access: .writable))
+ }
+
+ // The model's refusals, each of which the session above keeps open or reverts.
+
+ private func open() async throws -> (DocsModel, AccessServer) {
+ let server = AccessServer()
+ try await server.inner.seed([.object(["type": .string("paragraph"), "children": .array([
+ .object(["type": .string("text"), "runs": .array([.object(["insert": .string("Hello"), "marks": .object([:])])])])])])])
+ let connectivity = NativeConnectivity(source: ScriptedPathSource(.satisfied))
+ let account = DocsOfflineAccount(store: EphemeralDocsStore(), accountID: UUID().uuidString, connectivity: connectivity, transport: { server })
+ let model = DocsModel(transport: { server }, connectivity: connectivity, offlineAccount: account)
+ await model.open("doc")
+ return (model, server)
+ }
+
+ func testATitleOverTheLimitIsRefusedWithTheErrorShown() async throws {
+ let (model, _) = try await open()
+ model.renameInput = String(repeating: "é", count: 600) // 1,200 bytes
+ XCTAssertFalse(model.commitRename())
+ XCTAssertEqual(model.errorKey, "docs.error.generic", "the callout says so")
+ XCTAssertNotNil(model.renameInput, "the typed title is kept for another try")
+ await model.stop()
+ }
+
+ func testARenameAfterWriteAccessEndsIsRefused() async throws {
+ let (model, server) = try await open()
+ model.renameInput = "New title"
+ await server.answer(200, canWrite: false)
+ await model.revalidateAccess()
+ XCTAssertEqual(model.documentAccess, .readOnly)
+ XCTAssertFalse(model.commitRename())
+ XCTAssertNotEqual(model.detail?.title, "New title")
+ await model.stop()
+ }
+}
diff --git a/native/apple/Tests/DocsKitTests/DocsSubtitleTests.swift b/native/apple/Tests/DocsKitTests/DocsSubtitleTests.swift
new file mode 100644
index 0000000..d594ac6
--- /dev/null
+++ b/native/apple/Tests/DocsKitTests/DocsSubtitleTests.swift
@@ -0,0 +1,115 @@
+import RastrilloApple
+import RastrilloNative
+import XCTest
+@testable import DocsKit
+
+/// Spec §6: every subtitle row, its words, style and announcement.
+final class DocsSubtitleTests: XCTestCase {
+ private let en = DocsStrings(locale: Locale(identifier: "en"))
+
+ private func row(_ status: SyncStatus, access: DocsAccess = .writable, saving: Bool = false, loading: Bool = false) -> DocsSubtitleRow {
+ DocsSubtitleRow(access: access, status: status, savingShown: saving, loading: loading)
+ }
+
+ func testEveryRowInPrecedenceOrder() {
+ let held = SyncStatus.failed(pending: 1, reason: .held(.accessLost))
+ // 1 beats everything.
+ XCTAssertEqual(row(held, access: .unavailable), .unavailable)
+ XCTAssertEqual(row(held), .failedHeld)
+ XCTAssertEqual(row(.failed(pending: 0, reason: .cannotSaveOnDevice)), .cannotSaveOnDevice)
+ XCTAssertEqual(row(.failed(pending: 2, reason: .tooManyUnsent)), .tooManyUnsent)
+ XCTAssertEqual(row(.needsSignIn(pending: 3)), .needsSignIn(pending: 3))
+ XCTAssertEqual(row(.needsSignIn(pending: 0)), .signedOut)
+ XCTAssertEqual(row(.offline(pending: 2)), .offline(pending: 2))
+ XCTAssertEqual(row(.retrying(pending: 1)), .retrying(pending: 1))
+ // 9 only once the debounce says so.
+ XCTAssertEqual(row(.saving), .saved)
+ XCTAssertEqual(row(.saving, saving: true), .saving)
+ XCTAssertEqual(row(.saving, access: .readOnly), .viewOnly)
+ XCTAssertEqual(row(.saved, access: .readOnly), .viewOnly)
+ XCTAssertEqual(row(.saved), .saved)
+ // 13: the team alone while the document loads.
+ XCTAssertEqual(row(.saved, loading: true), .loading)
+ // A negative row still shows while loading: it is news.
+ XCTAssertEqual(row(.offline(pending: 1), loading: true), .offline(pending: 1))
+ }
+
+ func testWordsAndJoin() {
+ XCTAssertEqual(en.subtitle(team: "Tito", row: .saved), "Tito · Saved")
+ XCTAssertEqual(en.subtitle(team: "Tito", row: .viewOnly), "Tito · View only")
+ XCTAssertEqual(en.subtitle(team: "Tito", row: .unavailable), "Tito · No longer available")
+ XCTAssertEqual(en.subtitle(team: "Tito", row: .signedOut), "Tito · Signed out")
+ XCTAssertEqual(en.subtitle(team: nil, row: .saved), "Saved", "no team: the state alone, no separator")
+ XCTAssertEqual(en.subtitle(team: "", row: .saved), "Saved")
+ XCTAssertEqual(en.subtitle(team: "Tito", row: .loading), "Tito", "loading: the team only")
+ let sync = NativeSyncStrings.kit(localization: "en")
+ XCTAssertEqual(en.state(.offline(pending: 2)), sync.offline(2))
+ XCTAssertEqual(en.state(.needsSignIn(pending: 3)), sync.needsSignIn(3))
+ XCTAssertEqual(en.state(.retrying(pending: 1)), sync.retrying)
+ XCTAssertEqual(en.state(.saving), sync.saving)
+ XCTAssertEqual(en.state(.failedHeld), sync.failed(.held(.tooLarge)))
+ XCTAssertEqual(en.state(.cannotSaveOnDevice), sync.failed(.cannotSaveOnDevice))
+ XCTAssertEqual(en.state(.tooManyUnsent), sync.failed(.tooManyUnsent))
+ }
+
+ func testStyles() {
+ for negative in [DocsSubtitleRow.unavailable, .failedHeld, .cannotSaveOnDevice, .tooManyUnsent, .needsSignIn(pending: 1), .signedOut] {
+ XCTAssertTrue(negative.isNegative, "\(negative)")
+ }
+ for muted in [DocsSubtitleRow.offline(pending: 1), .retrying(pending: 1), .saving, .viewOnly, .saved, .loading] {
+ XCTAssertFalse(muted.isNegative, "\(muted)")
+ }
+ XCTAssertTrue(DocsSubtitleRow.failedHeld.isEmphasised)
+ XCTAssertFalse(DocsSubtitleRow.unavailable.isEmphasised)
+ }
+
+ func testAnnouncements() {
+ // Entering offline, needs sign-in, failed or unavailable is news.
+ for new in [DocsSubtitleRow.offline(pending: 1), .needsSignIn(pending: 1), .signedOut, .failedHeld, .cannotSaveOnDevice, .tooManyUnsent, .unavailable] {
+ XCTAssertTrue(DocsSubtitleRow.announces(from: .saved, to: new), "\(new)")
+ }
+ // A count changing inside one kind is not; saving never is.
+ XCTAssertFalse(DocsSubtitleRow.announces(from: .offline(pending: 1), to: .offline(pending: 2)))
+ XCTAssertFalse(DocsSubtitleRow.announces(from: .needsSignIn(pending: 2), to: .signedOut))
+ XCTAssertFalse(DocsSubtitleRow.announces(from: .saved, to: .saving))
+ XCTAssertFalse(DocsSubtitleRow.announces(from: .saving, to: .saved))
+ XCTAssertFalse(DocsSubtitleRow.announces(from: .saved, to: .retrying(pending: 1)))
+ // View only is news mid-session, not as a reader's window opens.
+ XCTAssertTrue(DocsSubtitleRow.announces(from: .saved, to: .viewOnly))
+ XCTAssertFalse(DocsSubtitleRow.announces(from: .loading, to: .viewOnly))
+ }
+
+ /// Spec §8: every key the new views use resolves in all twelve tables,
+ /// and no value is its own key.
+ func testEveryNewKeyResolvesInEveryLanguage() throws {
+ let keys = ["docs.editor.toolbar.history", "docs.editor.toolbar.group.style", "docs.editor.toolbar.group.text",
+ "docs.editor.toolbar.group.align", "docs.editor.toolbar.group.lists", "docs.editor.inspector.label",
+ "docs.editor.inspector.toggle", "docs.share.action", "native.subtitle.saved", "native.subtitle.viewOnly",
+ "native.subtitle.joined", "native.subtitle.unavailable", "native.unavailable.body", "native.subtitle.signedOut",
+ "native.format.show", "native.format.hide",
+ // Reused by the header, inspector and menus.
+ "docs.editor.toolbar.undo", "docs.editor.toolbar.redo", "docs.editor.toolbar.bold", "docs.editor.toolbar.italic",
+ "docs.editor.toolbar.code", "docs.editor.toolbar.align.left", "docs.editor.toolbar.align.center",
+ "docs.editor.toolbar.align.right", "docs.editor.toolbar.bulletlist", "docs.editor.toolbar.orderedlist",
+ "docs.editor.toolbar.quote", "docs.editor.toolbar.block", "docs.editor.toolbar.block.paragraph",
+ "docs.editor.toolbar.font", "docs.editor.toolbar.size", "docs.editor.menu.format.indent",
+ "docs.editor.menu.format.outdent", "docs.editor.menu.format.clear", "docs.editor.menu.format",
+ "docs.editor.menu.tools", "docs.editor.menu.tools.wordcount", "docs.editor.menu.tools.shortcuts",
+ "docs.editor.menu.view.paged", "docs.editor.menu.view.infinite", "docs.editor.menu.file.open",
+ "docs.document.rename", "native.close", "native.retry", "native.discard.action"]
+ let languages = DocsResources.bundle.localizations.filter { $0 != "Base" }
+ XCTAssertEqual(Set(languages), ["ar", "bn", "en", "es", "ga", "hi", "ja", "pt", "ru", "vi", "yue", "zh-Hans"])
+ for language in languages {
+ let strings = DocsStrings(locale: Locale(identifier: language))
+ XCTAssertEqual(strings.localization, language)
+ for key in keys {
+ let value = strings(key)
+ XCTAssertNotEqual(value, key, "\(language): \(key) has no value")
+ XCTAssertFalse(value.isEmpty, "\(language): \(key) is empty")
+ }
+ let joined = strings("native.subtitle.joined")
+ XCTAssertTrue(joined.contains("%1$@") && joined.contains("%2$@"), "\(language): the join keeps both placeholders")
+ XCTAssertFalse(strings.subtitle(team: "T", row: .saved).contains("%"), language)
+ }
+ }
+}
diff --git a/native/apple/Tests/DocsSnapshots/EditorSnapshots.swift b/native/apple/Tests/DocsSnapshots/EditorSnapshots.swift
index b569628..0997ba3 100644
--- a/native/apple/Tests/DocsSnapshots/EditorSnapshots.swift
+++ b/native/apple/Tests/DocsSnapshots/EditorSnapshots.swift
@@ -145,6 +145,9 @@ enum EditorScript: Sendable {
let zoom: Double
let scroll: CGFloat
let script: EditorScript
+ /// The S2a window chrome around the page (WindowSnapshots.swift), nil
+ /// for the page alone.
+ var chrome: WindowChrome? = nil
@State private var model: DocsModel?
@State private var server: EditorServer?
@State private var images = DocsImageStore()
@@ -165,8 +168,20 @@ enum EditorScript: Sendable {
var body: some View {
ZStack(alignment: .topLeading) {
if let model, let server {
+ #if os(macOS)
+ if let chrome {
+ WindowChromeView(chrome: chrome, model: model) {
+ EditorPage(model: model, images: images, client: server, paged: paged, zoom: zoom, inspector: chrome.inspectorSide)
+ .background { ProbeView(probe: probe) }
+ }
+ } else {
+ EditorPage(model: model, images: images, client: server, paged: paged, zoom: zoom)
+ .background { ProbeView(probe: probe) }
+ }
+ #else
EditorPage(model: model, images: images, client: server, paged: paged, zoom: zoom)
.background { ProbeView(probe: probe) }
+ #endif
}
if !ready { OpeningCounter() }
}
@@ -177,6 +192,7 @@ enum EditorScript: Sendable {
private func open() async {
do {
let server = EditorServer()
+ if let chrome, chrome.reader { await server.readOnly() }
try await server.seed(fixture.blocks)
let connectivity = NativeConnectivity(source: ScriptedPathSource(.satisfied))
let account = DocsOfflineAccount(store: EphemeralDocsStore(), accountID: UUID().uuidString,
@@ -192,6 +208,9 @@ enum EditorScript: Sendable {
try await until("the first render") { model.renderedGeneration == model.projectionGeneration && probe.textView != nil }
if case .typeBeforeBreakThenPeer = script { try await typeBeforeBreakThenPeer(model, server, account) }
try await settle(model, account)
+ // A document deleted or unshared while open (spec §6 row 1).
+ if chrome?.unavailable == true { model.unavailable = true; model.inputPaused = true }
+ if let key = chrome?.errorKey { model.errorKey = key }
try await layOut()
await Task.yield()
ready = true
@@ -265,9 +284,10 @@ enum EditorScript: Sendable {
// ones: pinned, like the kit pins the accent, so the picture does
// not depend on what is plugged in.
scrollView.scrollerStyle = .overlay
- try await until("the scroll view is \(self.window)") {
+ let expected = CGSize(width: self.window.width, height: self.window.height - (chrome == nil ? 0 : WindowChrome.headerHeight))
+ try await until("the scroll view is \(expected)") {
window.contentView?.layoutSubtreeIfNeeded()
- return scrollView.frame.size == self.window
+ return scrollView.frame.size == expected
}
text.needsLayout = true
text.layoutSubtreeIfNeeded()
@@ -324,17 +344,18 @@ struct EditorScreenFailure: Error, CustomStringConvertible {
/// The page as `DocsWorkspace.editor` draws it: the projection rendered with
/// its images, in `NativeDocumentTextView`, wired to the model.
-@MainActor private struct EditorPage: View {
+@MainActor struct EditorPage: View {
/// Held as `DocsWorkspace` holds it, in `@State`.
@State private var model: DocsModel
let images: DocsImageStore
let client: NativeTransport
let paged: Bool
let zoom: Double
+ var inspector: DocsDeskLayout.Side? = nil
- init(model: DocsModel, images: DocsImageStore, client: NativeTransport, paged: Bool, zoom: Double) {
+ init(model: DocsModel, images: DocsImageStore, client: NativeTransport, paged: Bool, zoom: Double, inspector: DocsDeskLayout.Side? = nil) {
_model = State(initialValue: model)
- self.images = images; self.client = client; self.paged = paged; self.zoom = zoom
+ self.images = images; self.client = client; self.paged = paged; self.zoom = zoom; self.inspector = inspector
}
var body: some View {
@@ -353,6 +374,9 @@ struct EditorScreenFailure: Error, CustomStringConvertible {
&& (action == "undo" ? projection.canUndo : projection.canRedo)
},
explicitCommandRevision: model.explicitCommandRevision, zoom: zoom, typingMarks: model.typingMarks)
+ #if os(macOS)
+ .inspectorSide(inspector)
+ #endif
.id(model.editorIdentity)
}
}
@@ -404,6 +428,9 @@ private struct ProbeView: UIViewRepresentable {
actor EditorServer: NativeTransport {
nonisolated let origin = URL(string: "https://docs.snapshot.invalid")!
private let replica = CRDTReplica(guid: "editor-snapshots")
+ private var canWrite = true
+ /// The detail answers can_write false: a reader's window.
+ func readOnly() { canWrite = false }
private var sequence: Int64 = 0
private var rows: [Int64: Data] = [:]
private var listeners: [UUID: AsyncStream<Int64>.Continuation] = [:]
@@ -450,7 +477,7 @@ actor EditorServer: NativeTransport {
let highest = sequence
return NativeResponse(data: try await replica.persistentState().state, status: 200, headers: ["Docs-Seq": String(highest)])
}
- let detail = DocumentDetail(sqid: "doc", title: "A History of the Millbrook Waterworks", guid: "editor-snapshots", can_write: true, can_share: false)
+ let detail = DocumentDetail(sqid: "doc", title: "A History of the Millbrook Waterworks", guid: "editor-snapshots", can_write: canWrite, can_share: canWrite)
return NativeResponse(data: try JSONEncoder().encode(detail), status: 200, headers: [:])
}
diff --git a/native/apple/Tests/DocsSnapshots/WindowSnapshots.swift b/native/apple/Tests/DocsSnapshots/WindowSnapshots.swift
new file mode 100644
index 0000000..80a25ee
--- /dev/null
+++ b/native/apple/Tests/DocsSnapshots/WindowSnapshots.swift
@@ -0,0 +1,145 @@
+import Foundation
+import RastrilloApple
+import RastrilloSnapshots
+import SwiftUI
+import XCTest
+@testable import DocsKit
+
+/// What the window around the page shows.
+struct WindowChrome: Sendable {
+ static let headerHeight: CGFloat = 52
+ var inspector: Bool
+ var reader = false
+ var unavailable = false
+ /// A writer's callout (today's errorKey), shown beside the inspector.
+ var errorKey: String? = nil
+ /// The interface language, nil for English.
+ var language: String? = nil
+ var rightToLeft: Bool { language == "ar" }
+ /// The side the inspector covers when it shows (writers only).
+ var inspectorSide: DocsDeskLayout.Side? { inspector && !reader && !unavailable ? (rightToLeft ? .left : .right) : nil }
+}
+
+#if os(macOS)
+
+/// The S2a document window (spec §1, §6, §11): the header Docs draws in the
+/// toolbar (the title area with its subtitle, undo/redo, Format, Share…),
+/// the floating Format inspector over the desk and the page placed by the
+/// centring rule, for a writer with the inspector open and closed, a
+/// reader, a document no longer available, in Arabic and Russian; and every
+/// subtitle row.
+///
+/// The kit draws a borderless window, which has no toolbar, so the header
+/// here is the same views laid out as the toolbar lays them out: the title
+/// area at the leading edge after the window buttons' space, the controls
+/// at the trailing edge, 8pt apart. The page, the desk and the inspector
+/// are the real ones.
+final class DocsWindowSnapshots: XCTestCase {
+ @MainActor func testWindowScreens() async throws {
+ try XCTSkipUnless(ProcessInfo.processInfo.environment["RASTRILLO_SNAPSHOTS"] != nil,
+ "Run with native/scripts/snapshots.sh")
+ DocsFonts.register()
+ let settings = SnapshotSettings(tint: OficinaPalette.accent(.docs))
+ await assertSnapshots(of: SnapshotCatalog(app: "docs-window", variants: [.init(.light, .standard), .init(.dark, .standard)],
+ settings: settings, screens: Self.screens))
+ await EditorScreen.stopAll()
+ }
+
+ /// 1280 wide: the inspector open puts the page at 188pt, clear of it.
+ static let size = SnapshotSize.fixed(width: 1280, height: 760)
+ /// 1000 wide: the page runs under the inspector (the cost of option B).
+ static let narrow = SnapshotSize.fixed(width: 1000, height: 640)
+
+ @MainActor static var screens: [SnapshotScreen] {
+ [
+ window("window-format-open", .init(inspector: true)),
+ window("window-format-closed", .init(inspector: false)),
+ window("window-format-open-narrow", .init(inspector: true), size: narrow),
+ window("window-reader", .init(inspector: true, reader: true)),
+ window("window-unavailable", .init(inspector: true, unavailable: true)),
+ // A callout beside the inspector at 1000pt: it keeps clear of it.
+ window("window-callout-narrow", .init(inspector: true, errorKey: "docs.editor.status.retrying"), size: narrow),
+ window("window-format-open-ar", .init(inspector: true, language: "ar"), fixture: .arabic),
+ window("window-format-open-ru", .init(inspector: true, language: "ru"), fixture: .russian),
+ SnapshotScreen("subtitles", mac: .width(420), iphone: nil) { SubtitleRows(language: "en") },
+ SnapshotScreen("subtitles-ar", mac: .width(420), iphone: nil) { SubtitleRows(language: "ar") },
+ SnapshotScreen("subtitles-ru", mac: .width(420), iphone: nil) { SubtitleRows(language: "ru") },
+ ]
+ }
+
+ @MainActor static func window(_ name: String, _ chrome: WindowChrome, size: SnapshotSize = size, fixture: EditorFixture = .millbrook) -> SnapshotScreen {
+ var frame = CGSize.zero
+ if case .fixed(let width, let height) = size { frame = CGSize(width: width, height: height) }
+ return SnapshotScreen(name, mac: size, iphone: nil) { [frame] in
+ var screen = EditorScreen(fixture, window: frame, paged: true)
+ screen.chrome = chrome
+ return screen
+ }
+ }
+}
+
+/// The header strip and the desk, the way `DocsWorkspace.editor` puts them
+/// in a window: the title area, the controls, the page, the floating
+/// inspector and the callout.
+@MainActor struct WindowChromeView<Page: View>: View {
+ static var headerHeight: CGFloat { WindowChrome.headerHeight }
+ let chrome: WindowChrome
+ let model: DocsModel
+ @ViewBuilder let page: Page
+ @State private var renaming = false
+ @State private var open = true
+
+ var body: some View {
+ VStack(spacing: 0) {
+ HStack(spacing: 8) {
+ // Where the window's close, minimise and zoom buttons sit.
+ Color.clear.frame(width: 78)
+ DocsTitleArea(model: model, team: "Tito", renaming: $renaming, beginRename: {}, finishRename: { true })
+ Spacer(minLength: 24)
+ DocsHeaderControls(model: model, inspectorOpen: $open, part: .history, share: {})
+ DocsHeaderControls(model: model, inspectorOpen: $open, part: .format, share: {})
+ DocsHeaderControls(model: model, inspectorOpen: $open, part: .share, share: {})
+ }
+ .padding(.trailing, 16)
+ .frame(height: Self.headerHeight)
+ .background(Color(nsColor: .windowBackgroundColor))
+ .overlay(alignment: .bottom) { Rectangle().fill(OficinaPalette.line).frame(height: 1) }
+ page
+ .overlay(alignment: .topTrailing) {
+ if chrome.inspectorSide != nil, let projection = model.projection {
+ DocsFormatInspector(model: model, content: NativeTextProjection.render(projection))
+ .padding(.top, DocsDeskLayout.inspectorInset)
+ .padding(.trailing, DocsDeskLayout.inspectorInset)
+ }
+ }
+ .overlay(alignment: .top) { DocsDocumentCallouts(model: model, discard: {}, close: {}, inspectorShown: chrome.inspectorSide != nil) }
+ }
+ .onAppear { open = chrome.inspector }
+ .environment(\.locale, Locale(identifier: chrome.language ?? "en"))
+ .environment(\.layoutDirection, chrome.rightToLeft ? .rightToLeft : .leftToRight)
+ }
+}
+
+/// Every §6 subtitle row under one title, in one language.
+@MainActor struct SubtitleRows: View {
+ let language: String
+ static let rows: [DocsSubtitleRow] = [.unavailable, .failedHeld, .cannotSaveOnDevice, .tooManyUnsent, .needsSignIn(pending: 3), .signedOut,
+ .offline(pending: 2), .retrying(pending: 1), .saving, .viewOnly, .saved, .loading]
+ var body: some View {
+ let strings = DocsStrings(locale: Locale(identifier: language))
+ VStack(alignment: .leading, spacing: 10) {
+ ForEach(Array(Self.rows.enumerated()), id: \.offset) { index, row in
+ VStack(alignment: .leading, spacing: 1) {
+ Text(verbatim: "A History of the Millbrook Waterworks")
+ .font(.system(size: 15, weight: .semibold)).foregroundStyle(OficinaPalette.text).lineLimit(1)
+ DocsSubtitleLine(row: row, team: "Tito", strings: strings)
+ }
+ }
+ }
+ .padding(16)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .environment(\.locale, Locale(identifier: language))
+ .environment(\.layoutDirection, language == "ar" ? .rightToLeft : .leftToRight)
+ }
+}
+#endif
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-dark-default.png
index 838b9d4..b773752 100644
Binary files a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-dark-default.png and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-light-default.png
index e3265a4..980d24c 100644
Binary files a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-light-default.png and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-150-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-dark-default.png
index 47583bc..79d1574 100644
Binary files a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-dark-default.png and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-light-default.png
index 9de510a..97bf7da 100644
Binary files a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-light-default.png and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-paged-150-heading-break-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-dark-default.png
index 30b45af..6074d73 100644
Binary files a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-dark-default.png and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-light-default.png
index e603143..68f0355 100644
Binary files a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-light-default.png and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-editor/mac/editor-pageless-150-heading-break-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/ENVIRONMENT b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/ENVIRONMENT
new file mode 100644
index 0000000..2a04923
--- /dev/null
+++ b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/ENVIRONMENT
@@ -0,0 +1,9 @@
+os: macOS 27.0.0
+toolchain: Xcode 27.2 Build version 27B52
+language: en
+accent: #007AFF
+locale: en_IE
+time zone: Europe/Dublin
+increase contrast: off
+reduce transparency: off
+differentiate without colour: off
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ar-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ar-dark-default.png
new file mode 100644
index 0000000..27dca6b
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ar-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ar-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ar-light-default.png
new file mode 100644
index 0000000..6433229
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ar-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-dark-default.png
new file mode 100644
index 0000000..f189d79
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-light-default.png
new file mode 100644
index 0000000..eb6b989
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ru-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ru-dark-default.png
new file mode 100644
index 0000000..9b01525
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ru-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ru-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ru-light-default.png
new file mode 100644
index 0000000..3ea5b23
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/subtitles-ru-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-callout-narrow-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-callout-narrow-dark-default.png
new file mode 100644
index 0000000..0aef9db
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-callout-narrow-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-callout-narrow-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-callout-narrow-light-default.png
new file mode 100644
index 0000000..b8e4011
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-callout-narrow-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-closed-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-closed-dark-default.png
new file mode 100644
index 0000000..47852f7
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-closed-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-closed-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-closed-light-default.png
new file mode 100644
index 0000000..fd9518f
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-closed-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ar-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ar-dark-default.png
new file mode 100644
index 0000000..b8d06a6
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ar-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ar-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ar-light-default.png
new file mode 100644
index 0000000..a5e0b89
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ar-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-dark-default.png
new file mode 100644
index 0000000..43af3f9
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-light-default.png
new file mode 100644
index 0000000..3e0ed91
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-narrow-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-narrow-dark-default.png
new file mode 100644
index 0000000..a2b7d92
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-narrow-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-narrow-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-narrow-light-default.png
new file mode 100644
index 0000000..2cd1770
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-narrow-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ru-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ru-dark-default.png
new file mode 100644
index 0000000..2e4bef0
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ru-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ru-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ru-light-default.png
new file mode 100644
index 0000000..e770e5a
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-format-open-ru-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-reader-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-reader-dark-default.png
new file mode 100644
index 0000000..5323088
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-reader-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-reader-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-reader-light-default.png
new file mode 100644
index 0000000..8e1b0ec
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-reader-light-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-unavailable-dark-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-unavailable-dark-default.png
new file mode 100644
index 0000000..e752765
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-unavailable-dark-default.png differ
diff --git a/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-unavailable-light-default.png b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-unavailable-light-default.png
new file mode 100644
index 0000000..08c365e
Binary files /dev/null and b/native/apple/Tests/DocsSnapshots/__Snapshots__/docs-window/mac/window-unavailable-light-default.png differ
diff --git a/native/apple/Tests/DocsWindowTests/DocsWindowCloserTests.swift b/native/apple/Tests/DocsWindowTests/DocsWindowCloserTests.swift
new file mode 100644
index 0000000..b83c3e8
--- /dev/null
+++ b/native/apple/Tests/DocsWindowTests/DocsWindowCloserTests.swift
@@ -0,0 +1,45 @@
+#if os(macOS)
+import AppKit
+import XCTest
+@testable import DocsKit
+
+/// Close on the "No longer available" callout (Fable on #169, finding 11)
+/// goes through the window's own close, so DocsCloseGuard asks about unsent
+/// changes rather than the window simply going away.
+@MainActor final class DocsWindowCloserTests: XCTestCase {
+ func testCloseAsksTheCloseGuardWhenChangesAreUnsent() async throws {
+ let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 400, height: 300), styleMask: [.titled, .closable], backing: .buffered, defer: false)
+ window.isReleasedWhenClosed = false
+ let content = NSView(frame: window.contentLayoutRect)
+ window.contentView = content
+ let guardView = DocsCloseGuardView()
+ guardView.hasUnsaved = { true }
+ content.addSubview(guardView)
+ window.orderFrontRegardless()
+ defer { if let sheet = window.attachedSheet { window.endSheet(sheet) }; window.orderOut(nil) }
+ XCTAssertTrue(window.delegate === guardView, "the guard is the window's delegate")
+
+ let closer = DocsWindowCloser()
+ closer.window = window
+ closer.close()
+ try await Task.sleep(for: .milliseconds(300))
+ XCTAssertTrue(window.isVisible, "unsent changes: the window stays")
+ XCTAssertNotNil(window.attachedSheet, "and the close guard asks")
+ }
+
+ func testCloseClosesAWindowWithNothingUnsent() async throws {
+ let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 400, height: 300), styleMask: [.titled, .closable], backing: .buffered, defer: false)
+ window.isReleasedWhenClosed = false
+ let content = NSView(frame: window.contentLayoutRect)
+ window.contentView = content
+ let guardView = DocsCloseGuardView()
+ content.addSubview(guardView)
+ window.orderFrontRegardless()
+ let closer = DocsWindowCloser()
+ closer.window = window
+ closer.close()
+ try await Task.sleep(for: .milliseconds(200))
+ XCTAssertFalse(window.isVisible)
+ }
+}
+#endif
diff --git a/native/apple/Tests/DocsWindowTests/DocumentWindowChromeTests.swift b/native/apple/Tests/DocsWindowTests/DocumentWindowChromeTests.swift
new file mode 100644
index 0000000..8a1a601
--- /dev/null
+++ b/native/apple/Tests/DocsWindowTests/DocumentWindowChromeTests.swift
@@ -0,0 +1,221 @@
+#if os(macOS)
+import AppKit
+import Foundation
+import Observation
+import RastrilloApple
+import RastrilloNative
+import SwiftUI
+import XCTest
+@testable import DocsKit
+
+/// The S2a document window, hosted in a real titled window with SwiftUI's
+/// toolbar and title bridged into it (spec §11, hosted-window tests): one
+/// title, the page placed by the centring rule at the six widths with the
+/// inspector open and closed, the inspector's app-wide state, and a
+/// reader's window, which never shows the inspector nor writes its state.
+@MainActor final class DocumentWindowChromeTests: XCTestCase {
+ override func setUp() async throws { UserDefaults.standard.removeObject(forKey: DocsInspectorState.key) }
+ override func tearDown() async throws { UserDefaults.standard.removeObject(forKey: DocsInspectorState.key) }
+
+ private struct Hosted {
+ let window: NSWindow
+ let server: ChromeServer
+ var text: DocsPagedTextView? { Self.find(window.contentView) }
+ static func find(_ view: NSView?) -> DocsPagedTextView? {
+ guard let view else { return nil }
+ if let text = view as? DocsPagedTextView { return text }
+ return view.subviews.lazy.compactMap(find).first
+ }
+ }
+
+ private func host(canWrite: Bool = true, width: CGFloat = 1120) async throws -> Hosted {
+ let server = ChromeServer(canWrite: canWrite)
+ try await server.seed()
+ let workspace = DocsWorkspace(client: NativeHTTP(origin: server.origin), transport: { server }, signOut: {}, documentID: "doc", team: "Tito")
+ let controller = NSHostingController(rootView: workspace)
+ controller.sceneBridgingOptions = [.toolbars, .title]
+ // The window's size is the test's, not the content's ideal size.
+ controller.sizingOptions = []
+ let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: width, height: 800),
+ styleMask: [.titled, .closable, .miniaturizable, .resizable], backing: .buffered, defer: false)
+ window.isReleasedWhenClosed = false
+ window.contentViewController = controller
+ window.setContentSize(NSSize(width: width, height: 800))
+ window.orderFrontRegardless()
+ let hosted = Hosted(window: window, server: server)
+ try await until("the document opened") { hosted.text.map { !$0.string.isEmpty } == true }
+ hosted.text?.enclosingScrollView?.scrollerStyle = .overlay
+ await pump(0.3)
+ return hosted
+ }
+
+ private func close(_ hosted: Hosted) async {
+ hosted.window.orderOut(nil)
+ hosted.window.contentViewController = nil
+ await pump(0.1)
+ }
+
+ private func pump(_ seconds: Double) async {
+ let end = Date().addingTimeInterval(seconds)
+ while Date() < end {
+ NSApp?.windows.forEach { $0.contentView?.layoutSubtreeIfNeeded() }
+ try? await Task.sleep(for: .milliseconds(10))
+ }
+ }
+
+ private func until(_ what: String, _ condition: () -> Bool) async throws {
+ let deadline = Date().addingTimeInterval(10)
+ while !condition() {
+ guard Date() < deadline else { throw XCTSkip("timed out waiting for \(what)") }
+ await pump(0.02)
+ }
+ }
+
+ /// The page's left edge and the clip view's width, in window points.
+ private func measure(_ hosted: Hosted) throws -> (x: CGFloat, width: CGFloat, page: CGFloat) {
+ let text = try XCTUnwrap(hosted.text)
+ let scroll = try XCTUnwrap(text.enclosingScrollView)
+ hosted.window.contentView?.layoutSubtreeIfNeeded()
+ let clip = scroll.contentView.convert(scroll.contentView.bounds, to: nil)
+ let page = text.convert(text.bounds, to: nil)
+ return (page.minX - clip.minX, clip.width, page.width)
+ }
+
+ func testOneTitleDrawnByDocsAndTheWindowTitleIsTheDocuments() async throws {
+ let hosted = try await host()
+ defer { Task { await close(hosted) } }
+ XCTAssertEqual(hosted.window.title, "Chrome test", "the Window menu, tabs and VoiceOver read the document's title")
+ XCTAssertEqual(hosted.window.titleVisibility, .hidden, "the system does not draw it a second time")
+ let toolbar = try XCTUnwrap(hosted.window.toolbar, "the header is in the window's toolbar")
+ XCTAssertTrue(toolbar.centeredItemIdentifiers.isEmpty, "no .principal item: it drew the title twice")
+ XCTAssertGreaterThanOrEqual(toolbar.items.count, 3, "the title area, a flexible space and the controls")
+ XCTAssertEqual(hosted.window.tab.title, "Chrome test")
+ }
+
+ /// Spec §1 page centring, finding 5: the page's frame in window points
+ /// at W = 1800, 1440, 1280, 1108, 1000 and 920, open and closed.
+ func testThePageFollowsTheCentringRuleAtTheSixWidths() async throws {
+ let hosted = try await host()
+ defer { Task { await close(hosted) } }
+ let text = try XCTUnwrap(hosted.text)
+ let container = text.textContainer?.size
+ for open in [true, false] {
+ UserDefaults.standard.set(open, forKey: DocsInspectorState.key)
+ for target in [1800, 1440, 1280, 1108, 1000, 920] as [CGFloat] {
+ hosted.window.setContentSize(NSSize(width: target, height: 800))
+ await pump(0.15)
+ let measured = try measure(hosted)
+ let expected = DocsDeskLayout.pageX(width: measured.width, page: measured.page, inspector: open ? .right : nil)
+ XCTAssertEqual(measured.x, expected, accuracy: 0.5, "W \(measured.width) (asked \(target)), inspector \(open ? "open" : "closed")")
+ XCTAssertEqual(measured.page, 612 * 4 / 3, accuracy: 0.5, "the page never shrinks")
+ }
+ }
+ XCTAssertEqual(text.textContainer?.size, container, "moving the page never changes the text's geometry")
+ }
+
+ /// ⌥⌘I flips one app-wide state: every open window follows it.
+ func testTheInspectorStateIsAppWide() async throws {
+ let first = try await host(width: 1280)
+ let second = try await host(width: 1280)
+ defer { Task { await close(first); await close(second) } }
+ XCTAssertNil(UserDefaults.standard.object(forKey: DocsInspectorState.key), "nothing written on open")
+ let openX = try (measure(first).x, measure(second).x)
+ UserDefaults.standard.set(false, forKey: DocsInspectorState.key)
+ await pump(0.3)
+ let closedX = try (measure(first).x, measure(second).x)
+ XCTAssertNotEqual(openX.0, closedX.0, accuracy: 1, "the first window's page moved")
+ XCTAssertNotEqual(openX.1, closedX.1, accuracy: 1, "and the second's")
+ }
+
+ /// A reader never sees the inspector, whatever the stored state, and
+ /// their window does not write it.
+ func testAReaderNeverSeesTheInspector() async throws {
+ UserDefaults.standard.set(true, forKey: DocsInspectorState.key)
+ let hosted = try await host(canWrite: false, width: 1280)
+ defer { Task { await close(hosted) } }
+ let measured = try measure(hosted)
+ XCTAssertEqual(measured.x, DocsDeskLayout.pageX(width: measured.width, page: measured.page, inspector: nil), accuracy: 0.5,
+ "centred as if closed: no inspector over the desk")
+ XCTAssertEqual(UserDefaults.standard.object(forKey: DocsInspectorState.key) as? Bool, true, "the reader's window wrote nothing")
+ XCTAssertFalse(try XCTUnwrap(hosted.text).isEditable)
+ }
+
+ /// Row 9's debounce: "Saving…" only after a whole second not saved, and
+ /// every return to saved restarts the clock.
+ func testSavingShowsOnlyAfterASecondAndRestartsOnSaved() async throws {
+ let state = SubtitleState()
+ var rows: [DocsSubtitleRow] = []
+ let view = SubtitleHost(state: state) { rows.append($0) }
+ let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 300, height: 40), styleMask: [.titled], backing: .buffered, defer: false)
+ window.isReleasedWhenClosed = false
+ window.contentView = NSHostingView(rootView: view)
+ window.orderFrontRegardless()
+ defer { window.orderOut(nil); window.contentView = nil }
+ await pump(0.2)
+ XCTAssertEqual(rows.last, .saved)
+ state.status = .saving
+ await pump(0.6)
+ XCTAssertEqual(rows.last, .saved, "not yet a second")
+ state.status = .saved
+ await pump(0.1)
+ state.status = .saving
+ await pump(0.6)
+ XCTAssertEqual(rows.last, .saved, "the clock restarted on .saved")
+ await pump(0.7)
+ XCTAssertEqual(rows.last, .saving, "a whole second not saved")
+ state.status = .saved
+ await pump(0.1)
+ XCTAssertEqual(rows.last, .saved)
+ state.status = .offline(pending: 2)
+ await pump(0.1)
+ XCTAssertEqual(rows.last, .offline(pending: 2), "rows 1–8 show at once")
+ }
+}
+
+@MainActor @Observable private final class SubtitleState { var status: SyncStatus = .saved }
+private struct SubtitleHost: View {
+ let state: SubtitleState
+ let observe: (DocsSubtitleRow) -> Void
+ var body: some View {
+ DocsSubtitleBody(status: state.status, access: .writable, loading: false, draft: false, team: "Tito", observe: observe)
+ }
+}
+
+/// One document, "doc": GET answers its detail (with the test's can_write)
+/// and state; POSTs are taken; the stream announces nothing.
+actor ChromeServer: NativeTransport {
+ nonisolated let origin = URL(string: "https://docs.chrome.invalid")!
+ private let replica = CRDTReplica(guid: "chrome")
+ private let canWrite: Bool
+ init(canWrite: Bool) { self.canWrite = canWrite }
+
+ func seed() async throws {
+ try await replica.open(update: Data())
+ _ = try await replica.command(["op": .string("insert_element"), "at": .number(0), "type": .string("paragraph")])
+ let runs: JSONValue = .array([.object(["insert": .string("A page on the desk, placed by the web's rule."), "marks": .object([:])])])
+ let paragraph: JSONValue = .object(["type": .string("paragraph"), "children": .array([.object(["type": .string("text"), "runs": runs])])])
+ _ = try await replica.command(["op": .string("display_paste"), "at": .number(0), "length": .number(0), "blocks": .array([paragraph])])
+ }
+
+ func responseDetails(_ path: String, method: String, body: Data?, contentType: String, maxBytes: Int) async throws -> NativeResponse {
+ let route = String(path.split(separator: "?")[0])
+ if method == "POST" { return NativeResponse(data: Data(), status: 204, headers: ["Docs-Seq": "1"]) }
+ if route == "/d/doc/updates" {
+ return NativeResponse(data: try await replica.persistentState().state, status: 200, headers: ["Docs-Seq": "0"])
+ }
+ if route == "/d/doc" {
+ let detail = DocumentDetail(sqid: "doc", title: "Chrome test", guid: "chrome", can_write: canWrite, can_share: canWrite)
+ return NativeResponse(data: try JSONEncoder().encode(detail), status: 200, headers: [:])
+ }
+ return NativeResponse(data: Data(), status: 404, headers: [:])
+ }
+
+ func stream(_ path: String, onOpen: @Sendable () async throws -> Void, onLine: @Sendable (String) async throws -> Void) async throws {
+ try await onOpen()
+ try await onLine("data: 0")
+ while !Task.isCancelled { try await Task.sleep(for: .seconds(60)) }
+ }
+
+ func download(_ path: String, to destination: URL) async throws { throw NativeClientError.notFound }
+}
+#endif
diff --git a/native/apple/Tests/DocsWindowTests/SignedInLaunchTests.swift b/native/apple/Tests/DocsWindowTests/SignedInLaunchTests.swift
index 8e10f4d..7a9f9e9 100644
--- a/native/apple/Tests/DocsWindowTests/SignedInLaunchTests.swift
+++ b/native/apple/Tests/DocsWindowTests/SignedInLaunchTests.swift
@@ -126,6 +126,23 @@ import RastrilloTestSupport
XCTAssertEqual(docs.mounted, mounted, "still signed in to the same team")
}
+ /// The subtitle's team comes from the identity's own record for each
+ /// document window, not from the home window having appeared (Fable on
+ /// #169, finding 9).
+ func testADocumentWindowsTeamNameIsDerivedFromItsAccount() async throws {
+ let docs = try await signedInSession()
+ let mounted = try XCTUnwrap(docs.mounted)
+ let account = DocsOficinaSession.accountID(mounted)
+ let windows = DocsWindows()
+ XCTAssertTrue(windows.teamNames.isEmpty, "no home window has appeared")
+ XCTAssertEqual(DocsDocumentWindow.team(for: account, oficina: docs, windows: windows), "Paul")
+ let other = DocsOficinaSession.accountID(identity: mounted.identity.id, team: "unknown-team")
+ XCTAssertNil(DocsDocumentWindow.team(for: other, oficina: docs, windows: windows), "a team never seen: the state alone")
+ let server = UUID().uuidString
+ windows.teamNames[server] = "Tito's server"
+ XCTAssertEqual(DocsDocumentWindow.team(for: server, oficina: docs, windows: windows), "Tito's server")
+ }
+
/// Docs' real home window, shown, with a way to let it run.
private func show(_ docs: DocsOficinaSession, _ windows: DocsWindows) -> (window: NSWindow, pump: (Double) async -> Void) {
let host = NSHostingView(rootView: DocsAccountWindow(oficina: docs, windows: windows))
diff --git a/native/smoke/document-window/Sources/HeaderSpike.swift b/native/smoke/document-window/Sources/HeaderSpike.swift
new file mode 100644
index 0000000..df9d203
--- /dev/null
+++ b/native/smoke/document-window/Sources/HeaderSpike.swift
@@ -0,0 +1,197 @@
+import AppKit
+import SwiftUI
+
+/// The S2a header spike (spec 2026-11-22 §1, "Spike checklist"), run on the
+/// real document window: Docs' own title area at the toolbar's leading edge,
+/// the system title hidden but still set. Each item prints PASS, FAIL or
+/// UNVERIFIED with what was measured; the run never stops on a FAIL, so the
+/// whole checklist is reported at once. `DOCS_SMOKE_SPIKE=1` runs it.
+@MainActor enum HeaderSpike {
+ static func run(_ window: NSWindow, title: String) async {
+ print("SPIKE: macOS \(ProcessInfo.processInfo.operatingSystemVersionString)")
+ // 0. One title: the window's is the document's, hidden, and no
+ // principal (centred) item draws it again.
+ report("window title is the document title", window.title == title, "title=\(window.title)")
+ report("system title hidden", window.titleVisibility == .hidden, "titleVisibility=\(window.titleVisibility.rawValue)")
+ let toolbar = window.toolbar
+ report("no centred (.principal) item", toolbar?.centeredItemIdentifiers.isEmpty ?? true,
+ "centred=\(toolbar?.centeredItemIdentifiers.map(\.rawValue) ?? [])")
+ let titles = staticTexts(in: window, matching: title)
+ // In process, SwiftUI builds the toolbar's accessibility tree only for
+ // a running assistive technology: zero found means "not measured".
+ if titles.isEmpty { print("SPIKE UNVERIFIED: exactly one visible title — no accessibility tree in process; see the window capture") }
+ else { report("exactly one visible title", titles.count == 1, "static texts reading the title: \(titles.count)") }
+
+ // 6. VoiceOver: the window's name is the title; the title area reads
+ // the title, then the subtitle.
+ report("VoiceOver window name", window.accessibilityTitle() == title, "accessibilityTitle=\(window.accessibilityTitle() ?? "nil")")
+ let order = toolbarTexts(window)
+ print("SPIKE: toolbar accessibility texts in order: \(order)")
+ if let at = order.firstIndex(of: title) {
+ report("VoiceOver reads title then subtitle", order.count > at + 1 && order[at + 1].contains("·") || (order.count > at + 1 && !order[at + 1].isEmpty),
+ "after the title: \(order.count > at + 1 ? order[at + 1] : "nothing")")
+ } else { print("SPIKE UNVERIFIED: VoiceOver reads title then subtitle — no accessibility tree in process (needs VoiceOver on a real Mac)") }
+
+ // 5. Window tabs: the tab shows the document title.
+ report("window tab title", window.tab.title == title, "tab.title=\(window.tab.title)")
+
+ // 3. Overflow at narrow widths: the title area stays; trailing
+ // controls go into the » menu.
+ let original = window.frame
+ for width in [1120.0, 760, 560, 420] {
+ window.setContentSize(NSSize(width: width, height: 700))
+ try? await Task.sleep(for: .milliseconds(400))
+ let all = toolbar?.items.map(\.itemIdentifier.rawValue) ?? []
+ let visible = toolbar?.visibleItems?.map(\.itemIdentifier.rawValue) ?? []
+ let titleShown = window.toolbar?.visibleItems?.first?.itemIdentifier == window.toolbar?.items.first?.itemIdentifier
+ print("SPIKE: width \(Int(width)): items=\(all) visible=\(visible) titleShown=\(titleShown)")
+ }
+ window.setFrame(original, display: true)
+ try? await Task.sleep(for: .milliseconds(400))
+
+ // 2. Double-click on the title area renames.
+ if let frame = titleFrame(window, title) {
+ let point = NSPoint(x: frame.midX, y: frame.midY)
+ click(window, at: point, count: 2)
+ try? await Task.sleep(for: .milliseconds(400))
+ let field = editableField(window.contentView?.superview)
+ let editing = (window.firstResponder as? NSTextView)?.isFieldEditor == true
+ report("the rename field has the keyboard focus", editing, "firstResponder=\(String(describing: window.firstResponder.map { type(of: $0) }))")
+ report("double-click on the title renames", field != nil, "editable field: \(field.map { String(describing: type(of: $0)) } ?? "none")")
+ // Leave the rename as it was: Esc.
+ // Esc leaves the rename as it was (onExitCommand).
+ if field != nil, let esc = NSEvent.keyEvent(with: .keyDown, location: .zero, modifierFlags: [], timestamp: ProcessInfo.processInfo.systemUptime,
+ windowNumber: window.windowNumber, context: nil, characters: "\u{1b}", charactersIgnoringModifiers: "\u{1b}", isARepeat: false, keyCode: 53) {
+ window.sendEvent(esc)
+ }
+ try? await Task.sleep(for: .milliseconds(400))
+ report("Esc leaves the rename", editableField(window.contentView?.superview) == nil, "field after Esc: \(editableField(window.contentView?.superview) == nil ? "gone" : "still there")")
+ dump(window.toolbar?.items.first?.view, depth: 0)
+ print("SPIKE: in-process NSAccessibility exposes SwiftUI toolbar text only while an assistive technology is running, so VoiceOver's reading order is not measured here")
+
+ // 1. Drag by the title area: a mouse-down there may move the window.
+ let hit = window.contentView?.superview?.hitTest(window.contentView!.superview!.convert(point, from: nil))
+ var chain: [String] = []
+ var view = hit
+ var movable = false
+ while let v = view { chain.append("\(type(of: v)):\(v.mouseDownCanMoveWindow)"); if v.mouseDownCanMoveWindow { movable = true }; view = v.superview }
+ print("SPIKE: hit chain at the title: \(chain.prefix(6))")
+ report("title area can drag the window (mouseDownCanMoveWindow on the hit view)", hit?.mouseDownCanMoveWindow == true, "hit=\(hit.map { String(describing: type(of: $0)) } ?? "nil")")
+ // A real drag, posted as events: AppKit may run the drag through the
+ // window server, which reads the real cursor, so a non-move here is
+ // UNVERIFIED rather than FAIL.
+ let start = window.frame.origin
+ let screenPoint = window.convertPoint(toScreen: point)
+ func post(_ type: NSEvent.EventType, _ dx: CGFloat) {
+ let p = window.convertPoint(fromScreen: NSPoint(x: screenPoint.x + dx, y: screenPoint.y))
+ if let event = NSEvent.mouseEvent(with: type, location: p, modifierFlags: [], timestamp: ProcessInfo.processInfo.systemUptime,
+ windowNumber: window.windowNumber, context: nil, eventNumber: 0, clickCount: 1, pressure: 1) {
+ NSApp.postEvent(event, atStart: false)
+ }
+ }
+ post(.leftMouseDown, 0); for dx in stride(from: 10.0, through: 80, by: 10) { post(.leftMouseDragged, dx) }; post(.leftMouseUp, 80)
+ try? await Task.sleep(for: .milliseconds(800))
+ print("SPIKE \(window.frame.origin != start ? "PASS" : "UNVERIFIED"): posted drag on the title moves the window — \(start) -> \(window.frame.origin)")
+ if window.frame.origin != start { window.setFrameOrigin(start) }
+ _ = movable
+ } else { report("title area found", false, "no accessibility frame for the title") }
+
+ // 2b. Double-click on empty toolbar space still zooms or minimises.
+ let action = UserDefaults.standard.string(forKey: "AppleActionOnDoubleClick") ?? "Maximize"
+ if let frame = titleFrame(window, title) {
+ let empty = NSPoint(x: (frame.maxX + window.frame.width * 0.55) / 2, y: frame.midY)
+ let before = window.frame
+ click(window, at: empty, count: 2)
+ try? await Task.sleep(for: .milliseconds(900))
+ let changed = window.frame != before || window.isMiniaturized
+ report("double-click on empty toolbar (\(action))", changed || action == "None", "frame \(before) -> \(window.frame), miniaturised=\(window.isMiniaturized)")
+ if window.isMiniaturized { window.deminiaturize(nil); try? await Task.sleep(for: .milliseconds(900)) }
+ if window.frame != before { window.setFrame(before, display: true) }
+ }
+
+ // 4. Full screen: the title area and controls stay in the toolbar.
+ window.toggleFullScreen(nil)
+ try? await Task.sleep(for: .seconds(2))
+ let full = window.styleMask.contains(.fullScreen)
+ let titleInFull = window.toolbar?.visibleItems?.first?.view?.window != nil
+ report("full screen keeps the title area", full && titleInFull && window.title == title, "fullScreen=\(full) titleShown=\(titleInFull)")
+ if full { window.toggleFullScreen(nil); try? await Task.sleep(for: .seconds(2)) }
+ }
+
+ static func dump(_ view: NSView?, depth: Int) {
+ guard let view, depth < 12 else { return }
+ let ax = AX(object: view)
+ print("SPIKE AX \(String(repeating: " ", count: depth))\(type(of: view)) role=\(ax.role?.rawValue ?? "-") text=\(ax.text) children=\(ax.children.count)")
+ for child in ax.children where !(child.object is NSView) {
+ print("SPIKE AX \(String(repeating: " ", count: depth + 1))[element] role=\(child.role?.rawValue ?? "-") text=\(child.text) children=\(child.children.map { ($0.role?.rawValue ?? "-") + ":" + $0.text })")
+ }
+ for sub in view.subviews { dump(sub, depth: depth + 1) }
+ }
+ static func report(_ item: String, _ passed: Bool, _ detail: String) {
+ print("SPIKE \(passed ? "PASS" : "FAIL"): \(item) — \(detail)")
+ }
+
+ struct AX {
+ let object: AnyObject
+ var role: NSAccessibility.Role? { object.accessibilityRole?() }
+ var text: String {
+ if let element = object as? NSObject & NSAccessibilityProtocol, let value = element.accessibilityValue() as? String, !value.isEmpty { return value }
+ return (object as? NSObject & NSAccessibilityProtocol)?.accessibilityLabel() ?? object.accessibilityLabel?() ?? ""
+ }
+ var frame: NSRect { object.accessibilityFrame?() ?? .zero }
+ var children: [AX] { (object.accessibilityChildren?() ?? []).map { AX(object: $0 as AnyObject) } }
+ var hidden: Bool { (object as? NSView)?.isHiddenOrHasHiddenAncestor ?? false }
+ }
+ static func all(_ window: NSWindow) -> [AX] {
+ var found: [AX] = []
+ func walk(_ element: AX, depth: Int) {
+ guard depth < 40 else { return }
+ found.append(element)
+ for child in element.children { walk(child, depth: depth + 1) }
+ }
+ walk(AX(object: window), depth: 0)
+ // SwiftUI's toolbar items are their own hosting views, outside the
+ // content view's tree: walk them too.
+ for item in window.toolbar?.items ?? [] { if let view = item.view { walk(AX(object: view), depth: 0) } }
+ return found
+ }
+
+ /// Every accessibility static text in the window that reads `text`.
+ static func staticTexts(in window: NSWindow, matching text: String) -> [AX] {
+ all(window).filter { $0.role == .staticText && $0.text == text && !$0.hidden }
+ }
+
+ /// The static texts in the toolbar's band, in accessibility order.
+ static func toolbarTexts(_ window: NSWindow) -> [String] {
+ let top = window.frame.maxY - 60
+ return all(window).filter { $0.role == .staticText && $0.frame.minY >= top && !$0.text.isEmpty }.map(\.text)
+ }
+
+ /// The title's frame in window coordinates: the accessibility element's,
+ /// or the upper half of the leading (navigation) toolbar item's view.
+ static func titleFrame(_ window: NSWindow, _ title: String) -> NSRect? {
+ if let element = staticTexts(in: window, matching: title).first, element.frame != .zero {
+ return window.convertFromScreen(element.frame)
+ }
+ guard let view = window.toolbar?.items.first?.view, view.window != nil else { return nil }
+ let frame = view.convert(view.bounds, to: nil)
+ return NSRect(x: frame.minX, y: frame.midY, width: min(frame.width, 160), height: frame.height / 2)
+ }
+
+ static func click(_ window: NSWindow, at point: NSPoint, count: Int) {
+ for n in 1...count {
+ for type in [NSEvent.EventType.leftMouseDown, .leftMouseUp] {
+ if let event = NSEvent.mouseEvent(with: type, location: point, modifierFlags: [], timestamp: ProcessInfo.processInfo.systemUptime,
+ windowNumber: window.windowNumber, context: nil, eventNumber: 0, clickCount: n, pressure: 1) {
+ window.sendEvent(event)
+ }
+ }
+ }
+ }
+
+ static func editableField(_ view: NSView?) -> NSTextField? {
+ guard let view else { return nil }
+ if let field = view as? NSTextField, field.isEditable, !field.isHiddenOrHasHiddenAncestor { return field }
+ return view.subviews.lazy.compactMap(editableField).first
+ }
+}
diff --git a/native/smoke/document-window/Sources/Smoke.swift b/native/smoke/document-window/Sources/Smoke.swift
index 15d3cda..0ca442d 100644
--- a/native/smoke/document-window/Sources/Smoke.swift
+++ b/native/smoke/document-window/Sources/Smoke.swift
@@ -26,6 +26,9 @@ private struct Launcher: View {
.task {
guard !SmokeRun.started else { return }
SmokeRun.started = true
+ setlinebuf(stdout)
+ // The Format inspector's app-wide state starts at its default.
+ UserDefaults.standard.removeObject(forKey: "docs.inspector.open")
NSApp.setActivationPolicy(.regular)
openWindow(id: "document", value: "fixture")
if ProcessInfo.processInfo.environment["DOCS_SMOKE_DRAFT"] == "1" {
@@ -79,24 +82,45 @@ private struct Launcher: View {
@MainActor private func exercise(_ window: NSWindow, editor: NSTextView) async {
NSApp.activate(ignoringOtherApps: true)
window.makeKeyAndOrderFront(nil)
+ if ProcessInfo.processInfo.environment["DOCS_SMOKE_SPIKE"] == "1" {
+ try? await Task.sleep(for: .milliseconds(800))
+ await HeaderSpike.run(window, title: window.title)
+ if let path = ProcessInfo.processInfo.environment["DOCS_SMOKE_WINDOW_SHOT"] {
+ if let frame = window.contentView?.superview, let bitmap = frame.bitmapImageRepForCachingDisplay(in: frame.bounds) {
+ frame.cacheDisplay(in: frame.bounds, to: bitmap)
+ try? bitmap.representation(using: .png, properties: [:])?.write(to: URL(fileURLWithPath: path))
+ }
+ }
+ if ProcessInfo.processInfo.environment["DOCS_SMOKE_SPIKE_ONLY"] == "1" { NSApp.terminate(nil) }
+ NSApp.activate(ignoringOtherApps: true)
+ window.makeKeyAndOrderFront(nil)
+ window.makeFirstResponder(editor)
+ editor.setSelectedRange(NSRange(location: 1, length: 2))
+ try? await Task.sleep(for: .milliseconds(500))
+ print("after spike: key=\(NSApp.keyWindow === window) responder=\(String(describing: window.firstResponder)) inspector=\(String(describing: UserDefaults.standard.object(forKey: "docs.inspector.open")))")
+ }
window.makeFirstResponder(editor)
editor.setSelectedRange(NSRange(location: 1, length: 2))
try? await Task.sleep(for: .milliseconds(500))
let original = editor.string
for step in 0..<8 {
try? await Task.sleep(for: .milliseconds(200))
- guard let menu = NSApp.mainMenu, let initial = menuItem(docsMacString("Document inspector"), in: menu), let submenu = initial.menu else {
- fatalError("Document inspector command unavailable")
- }
- submenu.delegate?.menuNeedsUpdate?(submenu)
- submenu.update()
- guard let item = menuItem(docsMacString("Document inspector"), in: menu), item.isEnabled else {
- fatalError("Inspector command disabled in document window")
+ guard let menu = NSApp.mainMenu else { fatalError("no main menu") }
+ let title = step.isMultiple(of: 2) ? "Hide Format" : "Show Format"
+ for top in menu.items { if let submenu = top.submenu { submenu.delegate?.menuNeedsUpdate?(submenu); submenu.update() } }
+ guard let item = menuItem(title, in: menu), item.isEnabled else {
+ let view = menu.items.first { $0.submenu?.items.contains { $0.title.hasSuffix("Format") } == true }?.submenu
+ print("View menu: \(view?.items.map { "\($0.title)[\($0.isEnabled)]" } ?? [])"); fflush(stdout)
+ fatalError("\(title) unavailable or disabled in a writer's document window (step \(step))")
}
let beforeWidth = editor.enclosingScrollView!.frame.width
+ let beforeX = editor.frame.minX
item.menu?.performActionForItem(at: item.menu!.index(of: item))
try? await Task.sleep(for: .milliseconds(200))
- precondition(abs(editor.enclosingScrollView!.frame.width - beforeWidth) > 200, "Inspector did not change editor space")
+ // The floating inspector covers the desk: the scroll view keeps
+ // its width and the page slides (spec §1, page centring).
+ precondition(abs(editor.enclosingScrollView!.frame.width - beforeWidth) < 0.5, "Format changed the editor's space")
+ precondition(abs(editor.frame.minX - beforeX) > 10, "Format did not move the page: \(beforeX) -> \(editor.frame.minX)")
window.setContentSize(NSSize(width: step.isMultiple(of: 2) ? 900 : 1200, height: 760))
try? await Task.sleep(for: .milliseconds(200))
window.contentView?.layoutSubtreeIfNeeded()
@@ -172,7 +196,7 @@ private struct Launcher: View {
view.cacheDisplay(in: view.bounds, to: bitmap)
try? bitmap.representation(using: .png, properties: [:])?.write(to: URL(fileURLWithPath: path))
}
- print("PASS: document loads, inspector toggles, window resizes, editor and selection persist, Enter and typing keep caret geometry stable")
+ print("PASS: document loads, Format inspector toggles, window resizes, editor and selection persist, Enter and typing keep caret geometry stable")
NSApp.windows.first(where: { $0.title == "Smoke Home" })?.close()
window.makeKeyAndOrderFront(nil)
guard let menu = NSApp.mainMenu, let appMenu = menu.items.first?.submenu else { fatalError("App menu missing") }