chore: rustfmt

This commit is contained in:
Maccesch 2024-09-02 14:39:22 +01:00
parent db6676396c
commit 0b21e9d7e4
36 changed files with 38 additions and 36 deletions

View file

@ -1,8 +1,8 @@
use crate::{UseDocument, UseWindow};
use cfg_if::cfg_if;
use leptos::html::{CreateElement, ElementType};
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use send_wrapper::SendWrapper;
use std::marker::PhantomData;
use wasm_bindgen::JsCast;

View file

@ -2,8 +2,8 @@ use crate::core::ElementMaybeSignal;
use crate::{UseDocument, UseWindow};
use cfg_if::cfg_if;
use leptos::html::ElementType;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use send_wrapper::SendWrapper;
use std::marker::PhantomData;
use wasm_bindgen::JsCast;

View file

@ -1,6 +1,6 @@
use crate::math::shared::use_simple_math;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use num::Float;
use paste::paste;

View file

@ -1,6 +1,6 @@
use crate::math::shared::use_binary_logic;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use paste::paste;
use_binary_logic!(

View file

@ -1,6 +1,6 @@
use crate::math::shared::use_simple_math;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use num::Float;
use paste::paste;

View file

@ -1,6 +1,6 @@
use crate::math::shared::use_simple_math;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use num::Float;
use paste::paste;

View file

@ -1,6 +1,6 @@
use crate::math::shared::use_partial_cmp;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::cmp::Ordering;
use_partial_cmp!(

View file

@ -1,6 +1,6 @@
use crate::math::shared::use_partial_cmp;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::cmp::Ordering;
use_partial_cmp!(

View file

@ -1,5 +1,5 @@
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
/// Reactive `NOT` condition.
///

View file

@ -1,6 +1,6 @@
use crate::math::shared::use_binary_logic;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use paste::paste;
use_binary_logic!(

View file

@ -1,6 +1,6 @@
use crate::math::shared::use_simple_math;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use num::Float;
use paste::paste;

View file

@ -1,7 +1,7 @@
use crate::utils::signal_filtered;
use crate::{use_debounce_fn_with_options, DebounceOptions};
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use paste::paste;
signal_filtered!(

View file

@ -1,7 +1,7 @@
use crate::utils::signal_filtered;
use crate::{use_throttle_fn_with_options, ThrottleOptions};
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use paste::paste;
signal_filtered!(

View file

@ -1,7 +1,7 @@
use super::{use_storage_with_options, StorageType, UseStorageOptions};
use codee::{Decoder, Encoder};
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
#[allow(rustdoc::bare_urls)]
/// Reactive [LocalStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).

View file

@ -1,8 +1,8 @@
use crate::{core::MaybeRwSignal, storage::StorageType, utils::FilterOptions};
use codee::{CodecError, Decoder, Encoder};
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::sync::Arc;
use thiserror::Error;
use wasm_bindgen::JsValue;

View file

@ -1,7 +1,7 @@
use crate::{use_media_query, use_window};
use leptos::logging::error;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use paste::paste;
use std::collections::HashMap;
use std::fmt::Debug;

View file

@ -1,8 +1,8 @@
use crate::{js, js_fut, use_event_listener, use_supported, UseTimeoutFnReturn};
use default_struct_builder::DefaultBuilder;
use leptos::ev::{copy, cut};
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
/// Reactive [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API).
///

View file

@ -8,8 +8,8 @@ use crate::{
};
use codee::string::FromToStringCodec;
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::fmt::{Display, Formatter};
use std::marker::PhantomData;
use std::str::FromStr;

View file

@ -3,8 +3,8 @@
use crate::use_event_listener;
use cfg_if::cfg_if;
use leptos::ev::visibilitychange;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
/// Reactively track `document.visibilityState`
///

View file

@ -1,8 +1,8 @@
use crate::core::ElementMaybeSignal;
use cfg_if::cfg_if;
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
/// Reactive [bounding box](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect) of an HTML element
///

View file

@ -4,8 +4,8 @@ use cfg_if::cfg_if;
use default_struct_builder::DefaultBuilder;
use leptos::ev::{mouseenter, mouseleave};
use leptos::leptos_dom::helpers::TimeoutHandle;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
cfg_if! { if #[cfg(not(feature = "ssr"))] {
use std::time::Duration;

View file

@ -1,8 +1,8 @@
use crate::core::{ElementMaybeSignal, Size};
use cfg_if::cfg_if;
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
cfg_if! { if #[cfg(not(feature = "ssr"))] {
use crate::{use_resize_observer_with_options, UseResizeObserverOptions};

View file

@ -234,7 +234,9 @@ where
);
} else {
#[cfg(debug_assertions)]
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
let _z =
leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter(
);
on_failed();
}

View file

@ -3,8 +3,8 @@
use crate::core::MaybeRwSignal;
use cfg_if::cfg_if;
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use wasm_bindgen::JsCast;
/// Reactive favicon.

View file

@ -1,7 +1,7 @@
use cfg_if::cfg_if;
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
/// Reactive [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API).
///

View file

@ -3,8 +3,8 @@ use crate::filter_builder_methods;
use crate::utils::{DebounceOptions, FilterOptions, ThrottleOptions};
use cfg_if::cfg_if;
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
///
///

View file

@ -6,8 +6,8 @@ use crate::{
use default_struct_builder::DefaultBuilder;
use futures_util::join;
use gloo_timers::future::sleep;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::future::Future;
use std::sync::Arc;
use std::time::Duration;

View file

@ -1,8 +1,8 @@
use crate::core::{ElementMaybeSignal, ElementsMaybeSignal};
use cfg_if::cfg_if;
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::marker::PhantomData;
cfg_if! { if #[cfg(not(feature = "ssr"))] {

View file

@ -1,8 +1,8 @@
use crate::utils::Pausable;
use crate::{use_interval_fn_with_options, UseIntervalFnOptions};
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::rc::Rc;
/// Reactive counter increases on every interval.

View file

@ -4,8 +4,8 @@ use crate::js;
use crate::utils::js_value_from_to_string;
use cfg_if::cfg_if;
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::fmt::Display;
use wasm_bindgen::{JsCast, JsValue};

View file

@ -3,8 +3,8 @@
use crate::use_event_listener;
use cfg_if::cfg_if;
use leptos::ev::change;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::cell::RefCell;
use std::rc::Rc;

View file

@ -1,5 +1,5 @@
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::fmt::Display;
/// Reactive [Permissions API](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API).

View file

@ -1,6 +1,6 @@
use crate::use_media_query;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::fmt::Display;
/// Reactive [prefers-contrast](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-contrast) media query.

View file

@ -2,8 +2,8 @@ use crate::core::{Direction, Directions, ElementMaybeSignal};
use crate::UseEventListenerOptions;
use cfg_if::cfg_if;
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::rc::Rc;
cfg_if! { if #[cfg(not(feature = "ssr"))] {

View file

@ -1,5 +1,5 @@
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::cmp::Ordering;
use std::ops::DerefMut;

View file

@ -4,8 +4,8 @@ use crate::{
use_interval_fn_with_options, use_raf_fn_with_options, UseIntervalFnOptions, UseRafFnOptions,
};
use default_struct_builder::DefaultBuilder;
use leptos::reactive_graph::wrappers::read::Signal;
use leptos::prelude::*;
use leptos::reactive_graph::wrappers::read::Signal;
use std::rc::Rc;
/// Reactive current timestamp.