Skip to content

Commit 9afdad1

Browse files
committed
Require Send+Sync for custom frequency map in set_freq_map
1 parent c180c82 commit 9afdad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stretch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl<T: Float + FromPrimitive + NumCast + core::ops::AddAssign> SignalsmithStret
236236
/// Set custom frequency mapping function
237237
pub fn set_freq_map<F>(&mut self, input_to_output: F)
238238
where
239-
F: Fn(T) -> T + 'static,
239+
F: Fn(T) -> T + 'static + Send + Sync,
240240
{
241241
self.custom_freq_map = Some(Box::new(input_to_output));
242242
}

0 commit comments

Comments
 (0)