Uses caller tracking for filtered signals for better warning reporting.

This commit is contained in:
Brian Carlsen 2024-07-15 02:43:48 +02:00
parent 9c035d50d8
commit 6918314bff
No known key found for this signature in database
GPG key ID: E450AC48D17D2ADE

View file

@ -8,6 +8,7 @@ macro_rules! signal_filtered {
) => {
paste! {
$(#[$outer])*
#[track_caller]
pub fn [<signal_ $filter_name d>]<S, T>(
value: S,
ms: impl Into<MaybeSignal<f64>> + 'static,
@ -27,6 +28,7 @@ macro_rules! signal_filtered {
/// See
#[$simple_func_doc]
/// for how to use.
#[track_caller]
pub fn [<signal_ $filter_name d_with_options>]<S, T>(
value: S,
ms: impl Into<MaybeSignal<f64>> + 'static,