@@ -58,7 +58,7 @@ pub struct Item<'a, T> {
5858/// and sent across threads.
5959pub struct Injector < T > {
6060 items : Arc < boxcar:: Vec < T > > ,
61- notify : Arc < ( dyn Fn ( ) + Sync + Send ) > ,
61+ notify : Arc < dyn Fn ( ) + Sync + Send > ,
6262}
6363
6464impl < T > Clone for Injector < T > {
@@ -84,10 +84,10 @@ impl<T> Injector<T> {
8484 ///
8585 /// You should favor this function over `push` if at least one of the following is true:
8686 /// - the number of items you're adding can be computed beforehand and is typically larger
87- /// than 1k
87+ /// than 1k
8888 /// - you're able to batch incoming items
8989 /// - you're adding items from multiple threads concurrently (this function results in less
90- /// contention)
90+ /// contention)
9191 pub fn extend < I > ( & self , values : I , fill_columns : impl Fn ( & T , & mut [ Utf32String ] ) )
9292 where
9393 I : IntoIterator < Item = T > + ExactSizeIterator ,
@@ -283,7 +283,7 @@ pub struct Nucleo<T: Sync + Send + 'static> {
283283 pool : ThreadPool ,
284284 state : State ,
285285 items : Arc < boxcar:: Vec < T > > ,
286- notify : Arc < ( dyn Fn ( ) + Sync + Send ) > ,
286+ notify : Arc < dyn Fn ( ) + Sync + Send > ,
287287 snapshot : Snapshot < T > ,
288288 /// The pattern matched by this matcher. To update the match pattern
289289 /// [`MultiPattern::reparse`](`pattern::MultiPattern::reparse`) should be used.
@@ -308,7 +308,7 @@ impl<T: Sync + Send + 'static> Nucleo<T> {
308308 /// number of columns cannot be changed after construction.
309309 pub fn new (
310310 config : Config ,
311- notify : Arc < ( dyn Fn ( ) + Sync + Send ) > ,
311+ notify : Arc < dyn Fn ( ) + Sync + Send > ,
312312 num_threads : Option < usize > ,
313313 columns : u32 ,
314314 ) -> Self {
0 commit comments