From 8ecdd876dcbdd8dd3e1565443d103ca9df699598 Mon Sep 17 00:00:00 2001 From: Philipp Mildenberger Date: Fri, 9 Aug 2024 18:11:02 +0200 Subject: [PATCH] Fix doc links by either correcting the item name, or making these public (#499) I don't think anything speaks against making the items public in masonry? --- masonry/src/lib.rs | 2 +- masonry/src/testing/mod.rs | 2 +- xilem_core/src/deferred.rs | 6 +++--- xilem_web/src/concurrent/memoized_await.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/masonry/src/lib.rs b/masonry/src/lib.rs index 54198de1..945b4298 100644 --- a/masonry/src/lib.rs +++ b/masonry/src/lib.rs @@ -131,7 +131,7 @@ pub use action::Action; pub use box_constraints::BoxConstraints; pub use contexts::{ AccessCtx, EventCtx, IsContext, LayoutCtx, LifeCycleCtx, PaintCtx, RawWrapper, RawWrapperMut, - WidgetCtx, + WidgetCtx, WorkerCtx, }; pub use event::{ AccessEvent, InternalLifeCycle, LifeCycle, PointerButton, PointerEvent, PointerState, diff --git a/masonry/src/testing/mod.rs b/masonry/src/testing/mod.rs index 82d6bc06..bed90ebb 100644 --- a/masonry/src/testing/mod.rs +++ b/masonry/src/testing/mod.rs @@ -14,7 +14,7 @@ mod screenshots; #[cfg(not(tarpaulin_include))] mod snapshot_utils; -pub use harness::{TestHarness, HARNESS_DEFAULT_SIZE}; +pub use harness::{TestHarness, HARNESS_DEFAULT_BACKGROUND_COLOR, HARNESS_DEFAULT_SIZE}; pub use helper_widgets::{ModularWidget, Record, Recorder, Recording, ReplaceChild, TestWidgetExt}; use crate::WidgetId; diff --git a/xilem_core/src/deferred.rs b/xilem_core/src/deferred.rs index d4945101..dc1af783 100644 --- a/xilem_core/src/deferred.rs +++ b/xilem_core/src/deferred.rs @@ -10,7 +10,7 @@ use crate::{DynMessage, Message, NoElement, View, ViewId, ViewPathTracker}; /// A `Context` for a [`View`](crate::View) implementation which supports /// asynchronous message reporting. pub trait AsyncCtx: ViewPathTracker { - /// Get a [`Proxy`] for this context. + /// Get a [`RawProxy`] for this context. // TODO: Maybe store the current path within this Proxy? fn proxy(&mut self) -> Arc>; } @@ -28,7 +28,7 @@ pub trait AsyncCtx: ViewPathTracker { /// /// ## Lifetimes /// -/// It is valid for a [`Proxy`] to outlive the [`View`](crate::View) it is associated with. +/// It is valid for a [`RawProxy`] to outlive the [`View`](crate::View) it is associated with. pub trait RawProxy: Send + Sync + 'static { /// Send a `message` to the view at `path` in this driver. /// @@ -87,7 +87,7 @@ where { } -/// The potential error conditions from a [`Proxy`] sending a message +/// The potential error conditions from a [`RawProxy`] sending a message #[derive(Debug)] pub enum ProxyError { /// The underlying driver (such as an event loop) is no longer running. diff --git a/xilem_web/src/concurrent/memoized_await.rs b/xilem_web/src/concurrent/memoized_await.rs index 06db90ec..e9b86e48 100644 --- a/xilem_web/src/concurrent/memoized_await.rs +++ b/xilem_web/src/concurrent/memoized_await.rs @@ -58,7 +58,7 @@ where /// Await a future returned by `init_future` invoked with the argument `data`, `callback` is called with the output of the resolved future. `init_future` will be invoked again, when `data` changes. /// -/// The update behavior can be controlled, by [`debounce`](`MemoizedAwait::debounce`) and [`reset_debounce_on_update`](`MemoizedAwait::reset_debounce_on_update`) +/// The update behavior can be controlled, by [`debounce_ms`](`MemoizedAwait::debounce_ms`) and [`reset_debounce_on_update`](`MemoizedAwait::reset_debounce_on_update`) /// /// # Examples ///