1
0
Fork 0

Fix with_string_to_value() after param refactor

This commit is contained in:
Robbert van der Helm 2022-03-07 21:00:39 +01:00
parent 17f3c6cc6c
commit 329da782b5
2 changed files with 2 additions and 2 deletions

View file

@ -269,7 +269,7 @@ impl FloatParam {
/// Use a custom conversion function to convert from a string to a plain, 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 fn with_string_to_value<F>(
pub fn with_string_to_value(
mut self,
callback: Arc<dyn Fn(&str) -> Option<f32> + Send + Sync>,
) -> Self {

View file

@ -239,7 +239,7 @@ impl IntParam {
/// Use a custom conversion function to convert from a string to a plain, 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 fn with_string_to_value<F>(
pub fn with_string_to_value(
mut self,
callback: Arc<dyn Fn(&str) -> Option<i32> + Send + Sync>,
) -> Self {