From 661a84af2421943d4bb88d1016a9c5f0edf177c6 Mon Sep 17 00:00:00 2001 From: Michael Scofield Date: Mon, 8 Jul 2024 16:09:24 +0200 Subject: [PATCH] Make `use_derive_signal!` public --- src/is_err.rs | 3 +-- src/is_none.rs | 3 +-- src/is_ok.rs | 3 +-- src/is_some.rs | 3 +-- src/use_to_string.rs | 3 +-- src/utils/mod.rs | 1 - src/utils/use_derive_signal.rs | 3 +-- 7 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/is_err.rs b/src/is_err.rs index 95102b3..2d6e5e1 100644 --- a/src/is_err.rs +++ b/src/is_err.rs @@ -1,7 +1,6 @@ -use crate::utils::use_derive_signal; use leptos::*; -use_derive_signal!( +crate::use_derive_signal!( /// Reactive `Result::is_err()`. /// /// ## Usage diff --git a/src/is_none.rs b/src/is_none.rs index d70ff97..e6bf349 100644 --- a/src/is_none.rs +++ b/src/is_none.rs @@ -1,7 +1,6 @@ -use crate::utils::use_derive_signal; use leptos::*; -use_derive_signal!( +crate::use_derive_signal!( /// Reactive `Option::is_none()`. /// /// ## Usage diff --git a/src/is_ok.rs b/src/is_ok.rs index 38cefcb..c568e82 100644 --- a/src/is_ok.rs +++ b/src/is_ok.rs @@ -1,7 +1,6 @@ -use crate::utils::use_derive_signal; use leptos::*; -use_derive_signal!( +crate::use_derive_signal!( /// Reactive `Result::is_ok()`. /// /// ## Usage diff --git a/src/is_some.rs b/src/is_some.rs index c75ec07..a9ea32e 100644 --- a/src/is_some.rs +++ b/src/is_some.rs @@ -1,7 +1,6 @@ -use crate::utils::use_derive_signal; use leptos::*; -use_derive_signal!( +crate::use_derive_signal!( /// Reactive `Option::is_some()`. /// /// ## Usage diff --git a/src/use_to_string.rs b/src/use_to_string.rs index 6cceb16..445c83d 100644 --- a/src/use_to_string.rs +++ b/src/use_to_string.rs @@ -1,7 +1,6 @@ -use crate::utils::use_derive_signal; use leptos::*; -use_derive_signal!( +crate::use_derive_signal!( /// Reactive `ToString::to_string()`. /// /// ## Usage diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 25f19eb..d5a1fca 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -13,4 +13,3 @@ pub use is::*; pub(crate) use js_value_from_to_string::*; pub use pausable::*; pub(crate) use signal_filtered::*; -pub(crate) use use_derive_signal::*; diff --git a/src/utils/use_derive_signal.rs b/src/utils/use_derive_signal.rs index 1bb1212..1fafc75 100644 --- a/src/utils/use_derive_signal.rs +++ b/src/utils/use_derive_signal.rs @@ -1,3 +1,4 @@ +#[macro_export] macro_rules! use_derive_signal { ( $(#[$outer:meta])* @@ -14,5 +15,3 @@ macro_rules! use_derive_signal { } }; } - -pub(crate) use use_derive_signal;