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 <id> 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 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-24 14:19:17 +03:00
1 parent 371e4d77c8
commit 84f4a4835f
6 files changed
+13 -14

No files matched your search

+1 -1
View File
@@ -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 /<id>), its password and a privilege key.
/// path, or `/<id>`), its password and a privilege key.
pub channel: Arc<str>,
pub channel_password: Arc<str>,
pub token: Arc<str>,
+1 -1
View File
@@ -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<L>(
state: &AppState<L>,
view: &SessionView<L>,
+3 -4
View File
@@ -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};
@@ -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.
@@ -118,7 +118,7 @@ pub fn layer_of(item: &LayerItem, base: &LayerSetting) -> Option<LayerSetting> {
}
/// 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<Vec<LayerSetting>> {
match usize::try_from(quality).ok()? {
+6 -6
View File
@@ -299,21 +299,21 @@ pub struct SessionView<L> {
/// Clients whose stored volume was sent for this voice connection.
pub applied_playback: HashSet<u16>,
/// Avatar pictures in the engine's cache, by unique id
/// ([`Event::AvatarReady`]).
/// ([`voelin_core::Event::AvatarReady`]).
pub avatars: HashMap<String, PathBuf>,
/// 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<u32, PathBuf>,
/// Banners and badges in the engine's cache, by address
/// ([`Event::PictureReady`]).
/// ([`voelin_core::Event::PictureReady`]).
pub pictures: HashMap<String, PathBuf>,
/// 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<String>,
/// The server groups in display order ([`Event::Groups`]).
/// The server groups in display order ([`voelin_core::Event::Groups`]).
pub server_groups: Vec<GroupInfo>,
/// The channel groups ([`Event::Groups`]).
/// The channel groups ([`voelin_core::Event::Groups`]).
pub channel_groups: Vec<GroupInfo>,
/// What the session's gateway offers (`voelin_gateway_proto::feature`).
pub gateway_caps: Vec<String>,