diff --git a/src/param/float.rs b/src/param/float.rs index 6f94370a..f2cdd0d9 100644 --- a/src/param/float.rs +++ b/src/param/float.rs @@ -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( + pub fn with_string_to_value( mut self, callback: Arc Option + Send + Sync>, ) -> Self { diff --git a/src/param/integer.rs b/src/param/integer.rs index f206fe28..096d14e1 100644 --- a/src/param/integer.rs +++ b/src/param/integer.rs @@ -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( + pub fn with_string_to_value( mut self, callback: Arc Option + Send + Sync>, ) -> Self {