From 8b7d664d2a6446cc8dd6935ae0506a92862aa199 Mon Sep 17 00:00:00 2001 From: Seldom <38388947+Seldom-SE@users.noreply.github.com> Date: Mon, 27 Jan 2025 00:22:46 -0700 Subject: [PATCH] `clippy::too_long_first_doc_paragraph` --- src/machine.rs | 4 +++- src/trigger.rs | 2 ++ src/trigger/input.rs | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/machine.rs b/src/machine.rs index 5eb634e..9fdf832 100644 --- a/src/machine.rs +++ b/src/machine.rs @@ -146,7 +146,9 @@ impl StateMetadata { } } -/// State machine component. Entities with this component will have components (the states) added +/// State machine component. +/// +/// Entities with this component will have components (the states) added /// and removed based on the transitions that you add. Build one with `StateMachine::default`, /// `StateMachine::trans`, and other methods. #[derive(Component)] diff --git a/src/trigger.rs b/src/trigger.rs index aba9e35..2f614a0 100644 --- a/src/trigger.rs +++ b/src/trigger.rs @@ -99,6 +99,8 @@ impl TriggerOut for Result { } } +/// Conversion trait to turn something into an [`EntityTrigger`]. +/// /// Automatically implemented for types that implement [`EntityTrigger`] and certain types that /// implement /// [`IntoSystem`]. Types that implement [`IntoSystem`] don't automatically implement diff --git a/src/trigger/input.rs b/src/trigger/input.rs index b530286..b73ed57 100644 --- a/src/trigger/input.rs +++ b/src/trigger/input.rs @@ -95,7 +95,9 @@ pub fn clamped_value_max( } /// Trigger that transitions if the given [`Actionlike`]'s [`DualAxisData`] is within the given -/// bounds. If no minimum length is necessary, use `0.`. To exclude specifically neutral axis pairs, +/// bounds. +/// +/// If no minimum length is necessary, use `0.`. To exclude specifically neutral axis pairs, /// use a small positive value. If no maximum length is necessary, use `f32::INFINITY`, or similar. /// If rotation bounds are not necessary, use the same value for the minimum and maximum ex. /// `Dir2::Y..Dir2::Y`.