From 83800fb714fe430ff22feec0f4e40529b8380b15 Mon Sep 17 00:00:00 2001 From: Paul Hansen Date: Mon, 9 Dec 2024 15:08:14 -0600 Subject: [PATCH] Use nightly cargo fmt --- leptos/src/attribute_interceptor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/leptos/src/attribute_interceptor.rs b/leptos/src/attribute_interceptor.rs index a4b8d5dcfe..3341585fa8 100644 --- a/leptos/src/attribute_interceptor.rs +++ b/leptos/src/attribute_interceptor.rs @@ -8,7 +8,7 @@ use leptos::prelude::*; type ChildBuilder = dyn Fn(AnyAttribute) -> T + Send + Sync + 'static; /// Intercepts attributes passed to your component, allowing passing them to any element. -/// +/// /// By default, Leptos passes any attributes passed to your component (e.g. ``) to the top-level element in the view returned by your component. /// [`AttributeInterceptor`] allows you to intercept this behavior and pass it onto any element in @@ -26,7 +26,7 @@ type ChildBuilder = dyn Fn(AnyAttribute) -> T + Send + Sync + 'static; /// /// #[component] /// pub fn MyComponent() -> impl IntoView { -/// view!{ +/// view! { /// ///
///
@@ -39,7 +39,7 @@ type ChildBuilder = dyn Fn(AnyAttribute) -> T + Send + Sync + 'static; pub fn AttributeInterceptor( /// The elements that will be rendered, with the attributes this component received as a /// parameter. - children: Chil + children: Chil, ) -> impl IntoView where Chil: Fn(AnyAttribute) -> T + Send + Sync + 'static,