Document the fields of the mirrored bridge structs and lift the exemption
The gate minor "field docs on the mirrored bridge structs" was answered with `#![allow(missing_docs)]` on `bridge` and `studio_bridge`, and the crate's comment said 400 or so fields. The two modules have 559 pub fields; 210 carried a comment of the .slint files and 349 (288 and 61) had none there. Each of those is described now, from the code that fills it (the producers in the view model and in voelin-ui, the settings keys' own documentation, the gateway protocol's types), and the allow is gone: `#![warn(missing_docs)]` holds for the whole crate and clippy -D warnings fails on a field without a comment (checked by deleting one). docs/ui.md and lib.rs give the real numbers. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
370eaf94ed
commit
26ee8c38c1
4 files changed
+361
-16
No files matched your search
+5
-4
@@ -124,10 +124,11 @@ this file is `voelin_ui_vm::chat`. The boundary:
|
||||
structs with the field names of the Slint structs in `bridge.slint` and
|
||||
`studio-bridge.slint`; `MytsBadge` and `MytsForm`, which have no data source
|
||||
in this build, stay Slint-only. The crate warns about undocumented public
|
||||
items (`#![warn(missing_docs)]`) and has none, but the two mirror modules
|
||||
carry `#![allow(missing_docs)]`: their 349 fields (288 in `bridge.rs`, 61 in
|
||||
`studio_bridge.rs`) are not documented one by one, the comments in the
|
||||
`.slint` files are the place to read them until the Slint front end goes.
|
||||
items (`#![warn(missing_docs)]`) and has none, the mirror modules' 559
|
||||
fields (460 in `bridge.rs`, 99 in `studio_bridge.rs`) included: 210 carry
|
||||
the comments of the `.slint` files, and the other 349 (288 in `bridge.rs`,
|
||||
61 in `studio_bridge.rs`), which had none there, were described from the
|
||||
code that fills them. No module is exempt from the lint.
|
||||
- **Lists.** `list::diff(old, new)` gives `Changes`: updates, removals and
|
||||
insertions by index, in the order to apply them. `bind/rows.rs` applies
|
||||
them to a `VecModel` and converts only the changed rows; a GPUI view
|
||||
|
||||
Reference in new issue
Block a user