From f64c2e15e9b7d54cdea8549b3fe1944736ff32bc Mon Sep 17 00:00:00 2001 From: marc2332 Date: Sat, 5 Aug 2023 09:56:46 +0200 Subject: [PATCH] minor tweaks --- core/src/accessibility_state.rs | 2 +- freya/src/lib.rs | 9 ++++++--- hooks/src/use_animation_transition.rs | 2 +- testing/src/config.rs | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/core/src/accessibility_state.rs b/core/src/accessibility_state.rs index 0fabd7e4b..b3f675a1b 100644 --- a/core/src/accessibility_state.rs +++ b/core/src/accessibility_state.rs @@ -27,7 +27,7 @@ impl AccessibilityState { Self::default() } - /// Wrap it in a Arc>. + /// Wrap it in a `Arc>`. pub fn wrap(self) -> SharedAccessibilityState { Arc::new(Mutex::new(self)) } diff --git a/freya/src/lib.rs b/freya/src/lib.rs index 039c0e120..6211b5fc5 100644 --- a/freya/src/lib.rs +++ b/freya/src/lib.rs @@ -18,7 +18,6 @@ //! //! render!( //! rect { -//! overflow: "clip", //! height: "100%", //! width: "100%", //! background: "rgb(35, 35, 35)", @@ -32,12 +31,16 @@ //! //! ``` //! +//! ## Features flags +//! +//! - `devtools`: Enables a side panel to inspect your App tree, styles and computed layout. +//! - `use_camera`: Enables the `use_camera` hook. +//! - `log`: Enables internal logs. +//! /// Dioxus library. pub use dioxus; -pub use freya_renderer::WindowConfig; - /// Launch your application. pub mod launch; diff --git a/hooks/src/use_animation_transition.rs b/hooks/src/use_animation_transition.rs index 4c085069a..283679bc0 100644 --- a/hooks/src/use_animation_transition.rs +++ b/hooks/src/use_animation_transition.rs @@ -130,7 +130,7 @@ impl TransitionState { } } -/// Manage the lifecyle of an [AnimationTransitionManager]. +/// Manage the lifecyle of a collection of transitions. #[derive(Clone)] pub struct TransitionsManager<'a> { /// Registered transitions diff --git a/testing/src/config.rs b/testing/src/config.rs index 48735155a..b88179378 100644 --- a/testing/src/config.rs +++ b/testing/src/config.rs @@ -2,7 +2,7 @@ use std::time::Duration; use torin::geometry::Size2D; -/// Configuration for a [`TestingHandler`]. +/// Configuration for [`crate::test_handler::TestingHandler`]. pub struct TestingConfig { vdom_timeout: Duration, size: Size2D,