Update leptos to v0.5.0-beta. Fix tests. Apply cargo clippy

This commit is contained in:
Danik Vitek 2023-08-08 12:49:48 +03:00 committed by Maccesch
parent 8303a66707
commit 270b153e61
4 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@ repository = "https://github.com/Synphonyte/leptos-use"
homepage = "https://leptos-use.rs" homepage = "https://leptos-use.rs"
[dependencies] [dependencies]
leptos = "0.5.0-alpha2" leptos = "0.5.0-beta"
wasm-bindgen = "0.2" wasm-bindgen = "0.2"
js-sys = "0.3" js-sys = "0.3"
default-struct-builder = "0.5" default-struct-builder = "0.5"

View file

@ -19,7 +19,7 @@ signal_filtered!(
/// # #[component] /// # #[component]
/// # fn Demo() -> impl IntoView { /// # fn Demo() -> impl IntoView {
/// let (input, set_input) = create_signal(""); /// let (input, set_input) = create_signal("");
/// let debounced = signal_debounced(input, 1000.0); /// let debounced: Signal<&'static str> = signal_debounced(input, 1000.0);
/// # /// #
/// # view! { } /// # view! { }
/// # } /// # }
@ -36,7 +36,7 @@ signal_filtered!(
/// # #[component] /// # #[component]
/// # fn Demo() -> impl IntoView { /// # fn Demo() -> impl IntoView {
/// let (input, set_input) = create_signal(""); /// let (input, set_input) = create_signal("");
/// let debounced = signal_debounced_with_options( /// let debounced: Signal<&'static str> = signal_debounced_with_options(
/// input, /// input,
/// 1000.0, /// 1000.0,
/// DebounceOptions::default().max_wait(Some(500.0)) /// DebounceOptions::default().max_wait(Some(500.0))

View file

@ -19,7 +19,7 @@ signal_filtered!(
/// # #[component] /// # #[component]
/// # fn Demo() -> impl IntoView { /// # fn Demo() -> impl IntoView {
/// let (input, set_input) = create_signal(""); /// let (input, set_input) = create_signal("");
/// let throttled = signal_throttled(input, 1000.0); /// let throttled: Signal<&'static str> = signal_throttled(input, 1000.0);
/// # /// #
/// # view! { } /// # view! { }
/// # } /// # }
@ -36,7 +36,7 @@ signal_filtered!(
/// # #[component] /// # #[component]
/// # fn Demo() -> impl IntoView { /// # fn Demo() -> impl IntoView {
/// let (input, set_input) = create_signal(""); /// let (input, set_input) = create_signal("");
/// let throttled = signal_throttled_with_options( /// let throttled: Signal<&'static str> = signal_throttled_with_options(
/// input, /// input,
/// 1000.0, /// 1000.0,
/// ThrottleOptions::default().leading(false).trailing(true) /// ThrottleOptions::default().leading(false).trailing(true)

View file

@ -285,7 +285,7 @@ cfg_if! { if #[cfg(feature = "storage")] {
fn get_store_signal( fn get_store_signal(
initial_value: MaybeRwSignal<ColorMode>, initial_value: MaybeRwSignal<ColorMode>,
storage_signal: Option<RwSignal<ColorMode>>, storage_signal: Option<RwSignal<ColorMode>>,
_storage_key: &String, _storage_key: &str,
_storage_enabled: bool, _storage_enabled: bool,
_storage: StorageType, _storage: StorageType,
_listen_to_storage_changes: bool, _listen_to_storage_changes: bool,