From 6d70e30584347047c3f36659d1106f657de8625d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 25 Jan 2022 22:45:58 +0100 Subject: [PATCH] Add send and sync constraints to boxed callbacks Otherwise the Sync constraint on Plugin cannot be satisfied. --- nih_plug/src/params.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nih_plug/src/params.rs b/nih_plug/src/params.rs index e8582828..d1dc8505 100644 --- a/nih_plug/src/params.rs +++ b/nih_plug/src/params.rs @@ -55,11 +55,11 @@ pub struct PlainParam { /// The parameter value's unit, added after `value_to_string` if that is set. pub unit: &'static str, /// Optional custom conversion function from an **unnormalized** value to a string. - pub value_to_string: Option String>>, + pub value_to_string: Option String>>, /// Optional custom conversion function from a string to an **unnormalized** value. If the /// string cannot be parsed, then this should return a `None`. If this happens while the /// parameter is being updated then the update will be canceled. - pub string_to_value: Option Option>>, + pub string_to_value: Option Option>>, } macro_rules! impl_plainparam {