From 84f4a4835f5702626e74345485b404cc06d870d1 Mon Sep 17 00:00:00 2001 From: faumaray Date: Sat, 24 Oct 2026 14:19:17 +0300 Subject: [PATCH] Make cargo doc of voelin-ui-vm pass with -D warnings RUSTDOCFLAGS=-D warnings failed with twelve errors, none of them new behaviour: public docs linking to the private server_lines and PRESETS (plain code spans now), Event::... links in state.rs that name voelin_core's Event without importing it (voelin_core::Event::..), an unclosed tag in a bridge field comment (a code span), and three explicit link targets that the label already resolves to. Co-Authored-By: Claude Sonnet 5.5 --- crates/voelin-ui-vm/src/bridge.rs | 2 +- crates/voelin-ui-vm/src/chat/logic.rs | 2 +- crates/voelin-ui-vm/src/servers/logic.rs | 7 +++---- crates/voelin-ui-vm/src/settings_page/logic.rs | 2 +- crates/voelin-ui-vm/src/settings_pages/logic.rs | 2 +- crates/voelin-ui-vm/src/state.rs | 12 ++++++------ 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/crates/voelin-ui-vm/src/bridge.rs b/crates/voelin-ui-vm/src/bridge.rs index 1263f0f..ecf4177 100644 --- a/crates/voelin-ui-vm/src/bridge.rs +++ b/crates/voelin-ui-vm/src/bridge.rs @@ -331,7 +331,7 @@ pub struct BookmarkForm { /// The server has voice: no Connect. pub connected: bool, /// From a link, not stored with the server: the channel to join (a - /// path, or /), its password and a privilege key. + /// path, or `/`), its password and a privilege key. pub channel: Arc, pub channel_password: Arc, pub token: Arc, diff --git a/crates/voelin-ui-vm/src/chat/logic.rs b/crates/voelin-ui-vm/src/chat/logic.rs index a67ba5c..4a8721d 100644 --- a/crates/voelin-ui-vm/src/chat/logic.rs +++ b/crates/voelin-ui-vm/src/chat/logic.rs @@ -809,7 +809,7 @@ pub struct LinesFacts<'a> { /// The lines of a tab's messages (`main`) or of its open topic, grouped and /// with everything the row shows (also the stream chat of the Stream Studio). /// The server chat starts with what the server says to everyone who -/// connects ([`server_lines`]). +/// connects (`server_lines`). pub fn lines_of( state: &AppState, view: &SessionView, diff --git a/crates/voelin-ui-vm/src/servers/logic.rs b/crates/voelin-ui-vm/src/servers/logic.rs index 8797e51..c9b1b69 100644 --- a/crates/voelin-ui-vm/src/servers/logic.rs +++ b/crates/voelin-ui-vm/src/servers/logic.rs @@ -1,9 +1,8 @@ //! Servers: what the rail, the server card and the channel tree show, which //! server is shown and how it is observed, the gateway found for it, and -//! joining a channel. The functions change the -//! [`AppState`](crate::state::AppState) and say in the -//! [`Cx`](crate::host::Cx)'s update what to draw and send; the store, the -//! secrets, the identity and the sockets are the front end's. +//! joining a channel. The functions change the [`AppState`] and say in the +//! [`Cx`]'s update what to draw and send; the store, the secrets, the identity +//! and the sockets are the front end's. use voelin_core::ts::identity::LaunchImport; use voelin_core::{Command, ObserveState, Source, VoiceOptions, VoiceState}; diff --git a/crates/voelin-ui-vm/src/settings_page/logic.rs b/crates/voelin-ui-vm/src/settings_page/logic.rs index 082b04d..e075e06 100644 --- a/crates/voelin-ui-vm/src/settings_page/logic.rs +++ b/crates/voelin-ui-vm/src/settings_page/logic.rs @@ -2,7 +2,7 @@ //! lists and the form, what a change of the form sends to the engine, the //! microphone test, the push-to-talk and H.264 switches, the crash notice //! and the volume dialog. The functions change the -//! [`AppState`](crate::state::AppState) and say in the [`Cx`]'s update what +//! [`AppState`] and say in the [`Cx`]'s update what //! to send and keep; the devices, the hotkey, the store and the window are //! the front end's. diff --git a/crates/voelin-ui-vm/src/settings_pages/logic.rs b/crates/voelin-ui-vm/src/settings_pages/logic.rs index 204fa4f..91c93e7 100644 --- a/crates/voelin-ui-vm/src/settings_pages/logic.rs +++ b/crates/voelin-ui-vm/src/settings_pages/logic.rs @@ -118,7 +118,7 @@ pub fn layer_of(item: &LayerItem, base: &LayerSetting) -> Option { } /// The layers of quality preset `quality` (0: none, the source's size; -/// then [`PRESETS`]) at `kbps` (0: automatic, for the preset's size and +/// then `PRESETS`) at `kbps` (0: automatic, for the preset's size and /// `fps`); `None` for no preset (layers of one's own). pub fn preset_layers(quality: i32, kbps: u32, fps: u32) -> Option> { match usize::try_from(quality).ok()? { diff --git a/crates/voelin-ui-vm/src/state.rs b/crates/voelin-ui-vm/src/state.rs index ce1bc1f..6f7d062 100644 --- a/crates/voelin-ui-vm/src/state.rs +++ b/crates/voelin-ui-vm/src/state.rs @@ -299,21 +299,21 @@ pub struct SessionView { /// Clients whose stored volume was sent for this voice connection. pub applied_playback: HashSet, /// Avatar pictures in the engine's cache, by unique id - /// ([`Event::AvatarReady`]). + /// ([`voelin_core::Event::AvatarReady`]). pub avatars: HashMap, - /// Icons in the engine's cache, by icon id ([`Event::IconReady`]). + /// Icons in the engine's cache, by icon id ([`voelin_core::Event::IconReady`]). pub icons: HashMap, /// Banners and badges in the engine's cache, by address - /// ([`Event::PictureReady`]). + /// ([`voelin_core::Event::PictureReady`]). pub pictures: HashMap, /// The server's icon id as its voice connection last told it - /// ([`Event::ServerDetails`]); kept while disconnected, for the rail. + /// ([`voelin_core::Event::ServerDetails`]); kept while disconnected, for the rail. pub server_icon: u32, /// Bookmark address that supplied this session's icon. pub icon_address: Option, - /// The server groups in display order ([`Event::Groups`]). + /// The server groups in display order ([`voelin_core::Event::Groups`]). pub server_groups: Vec, - /// The channel groups ([`Event::Groups`]). + /// The channel groups ([`voelin_core::Event::Groups`]). pub channel_groups: Vec, /// What the session's gateway offers (`voelin_gateway_proto::feature`). pub gateway_caps: Vec,