From 329da782b59d0d33af3efe95c80fbcbc08eeddfa Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 7 Mar 2022 21:00:39 +0100 Subject: [PATCH] Fix with_string_to_value() after param refactor --- src/param/float.rs | 2 +- src/param/integer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {