From 8811fa97d48e677cae7c0c0225667c37048022b8 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Wed, 21 Jun 2023 18:16:43 +0200 Subject: [PATCH] tui: Fix cargo doc --- radicle-tui/src/ui/cob.rs | 2 +- radicle-tui/src/ui/widget/common/list.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/radicle-tui/src/ui/cob.rs b/radicle-tui/src/ui/cob.rs index 8b0cde6f..9492ddbb 100644 --- a/radicle-tui/src/ui/cob.rs +++ b/radicle-tui/src/ui/cob.rs @@ -24,7 +24,7 @@ use super::widget::common::list::ListItem; /// An author item that can be used in tables, list or trees. /// /// Breaks up dependencies to [`Profile`] and [`Repository`] that -/// would be needed if [`Author`] would be used directly. +/// would be needed if [`AuthorItem`] would be used directly. #[derive(Clone)] pub struct AuthorItem { /// The author's DID. diff --git a/radicle-tui/src/ui/widget/common/list.rs b/radicle-tui/src/ui/widget/common/list.rs index 7198359d..9d485dab 100644 --- a/radicle-tui/src/ui/widget/common/list.rs +++ b/radicle-tui/src/ui/widget/common/list.rs @@ -13,7 +13,7 @@ use super::container::Header; use super::label::Label; use super::*; -/// A generic item that can be displayed in a table with [`W`] columns. +/// A generic item that can be displayed in a table with [`const W: usize`] columns. pub trait TableItem { /// Should return fields as table cells. fn row(&self, theme: &Theme) -> [Cell; W]; @@ -27,7 +27,7 @@ pub trait ListItem { /// Grow behavior of a table column. /// -/// [`tui::widgets::Table`] does only support percental column widths. +/// [`tuirealm::tui::widgets::Table`] does only support percental column widths. /// A [`ColumnWidth`] is used to specify the grow behaviour of a table column /// and a percental column width is calculated based on that. #[derive(Clone, Copy, Debug, Eq, PartialEq)] @@ -179,7 +179,7 @@ impl WidgetComponent for PropertyTable { } } -/// A table component that can display a list of [`TableItem`]s hold by a [`TableModel`]. +/// A table component that can display a list of [`TableItem`]s. pub struct Table where V: TableItem + Clone,