mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
chore: rustfmt
This commit is contained in:
parent
db6676396c
commit
0b21e9d7e4
36 changed files with 38 additions and 36 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
|
||||
/// Reactive `NOT` condition.
|
||||
///
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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).
|
||||
///
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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`
|
||||
///
|
||||
|
|
|
@ -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
|
||||
///
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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).
|
||||
///
|
||||
|
|
|
@ -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;
|
||||
|
||||
///
|
||||
///
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"))] {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"))] {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue