From 23d9c79e5ac1417c009f5b7876a30e7eecac5425 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 7 Dec 2024 10:42:00 +0100 Subject: [PATCH] docs: fix compiler warning Signed-off-by: Dietmar Maurer --- src/state/persistent_state.rs | 4 +--- src/widget/list_tile.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/state/persistent_state.rs b/src/state/persistent_state.rs index 695af20..e71351f 100644 --- a/src/state/persistent_state.rs +++ b/src/state/persistent_state.rs @@ -46,9 +46,7 @@ impl Deref for PersistentState { } impl PersistentState { - /// Create a new instance, using 'state_id' as storage location. - /// - /// See [Self::with_location] for details. + /// Create a new instance, using 'storage' [location](StorageLocation). pub fn new(storage: impl Into) -> Self { let mut me = Self { data: T::default(), diff --git a/src/widget/list_tile.rs b/src/widget/list_tile.rs index 7d9ec97..edf5e3b 100644 --- a/src/widget/list_tile.rs +++ b/src/widget/list_tile.rs @@ -9,7 +9,7 @@ use pwt_macros::{builder, widget}; /// List tile. A container with grid/subgrid layout. /// -/// This is meant to be used inside [List]. +/// This is meant to be used inside [List](crate::widget::List). /// /// ``` /// # use pwt::prelude::*; -- 2.39.5