fix formatting

This commit is contained in:
Evan Almloff committed 2024-01-03 15:35:24 -06:00
1 parent 2e424436b3
commit 422df68fea
2 files changed
+5 -2

No files matched your search

@@ -15,7 +15,7 @@ use serde::{de::DeserializeOwned, Serialize};
/// let state1 = use_state(cx, || server_cached(|| { /// let state1 = use_state(cx, || server_cached(|| {
/// 1234 /// 1234
/// })); /// }));
/// ///
/// todo!() /// todo!()
/// } /// }
/// ``` /// ```
+4 -1
View File
@@ -148,7 +148,10 @@ impl_event! {
/// ondoubleclick /// ondoubleclick
#[inline] #[inline]
pub fn ondoubleclick<'a, E: crate::EventReturn<T>, T>(_cx: &'a ::dioxus_core::ScopeState, mut _f: impl FnMut(::dioxus_core::Event<MouseData>) -> E + 'a) -> ::dioxus_core::Attribute<'a> { pub fn ondoubleclick<'a, E: crate::EventReturn<T>, T>(
_cx: &'a ::dioxus_core::ScopeState,
mut _f: impl FnMut(::dioxus_core::Event<MouseData>) -> E + 'a,
) -> ::dioxus_core::Attribute<'a> {
::dioxus_core::Attribute::new( ::dioxus_core::Attribute::new(
"ondblclick", "ondblclick",
_cx.listener(move |e: ::dioxus_core::Event<MouseData>| { _cx.listener(move |e: ::dioxus_core::Event<MouseData>| {