[yew-devel] [PATCH proxmox-yew-comp 2/2] wizzard: docs: Use full path for structs

Maximiliano Sandoval m.sandoval at proxmox.com
Tue Jan 14 10:41:03 CET 2025


Fixes:

warning: unresolved link to `MiniScroll`
   --> src/wizard.rs:108:5
    |
108 |     /// Use [MiniScroll] for [TabBar] to allow scrolling.
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: the link appears in this line:

            Use [MiniScroll] for [TabBar] to allow scrolling.
                 ^^^^^^^^^^
    = note: no item named `MiniScroll` in scope
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default

warning: unresolved link to `TabBar`
   --> src/wizard.rs:108:5
    |
108 |     /// Use [MiniScroll] for [TabBar] to allow scrolling.
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: the link appears in this line:

            Use [MiniScroll] for [TabBar] to allow scrolling.
                                  ^^^^^^
    = note: no item named `TabBar` in scope
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 src/wizard.rs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/wizard.rs b/src/wizard.rs
index 44772ce..1ff7b6a 100644
--- a/src/wizard.rs
+++ b/src/wizard.rs
@@ -29,7 +29,7 @@ use super::{IntoSubmitValueCallback, SubmitValueCallback};
 
 use pwt_macros::builder;
 
-/// Infos passed to the [SelectionView] render function.
+/// Infos passed to the [pwt::widget::SelectionView] render function.
 #[derive(Clone, PartialEq)]
 pub struct WizardPageRenderInfo {
     /// The key of the item to render
@@ -105,7 +105,8 @@ pub struct Wizard {
     #[prop_or_default]
     pub html_title: Option<Html>,
 
-    /// Use [MiniScroll] for [TabBar] to allow scrolling.
+    /// Use [pwt::widget::MiniScroll] for [pwt::widget::TabBar] to allow
+    /// scrolling.
     #[prop_or_default]
     #[builder(IntoPropValue, into_prop_value)]
     pub scroll_mode: Option<MiniScrollMode>,
-- 
2.39.5





More information about the yew-devel mailing list