diff --git a/tfhe/examples/fhe_strings/server_key/no_patterns.rs b/tfhe/examples/fhe_strings/server_key/no_patterns.rs index 18172f3f17..2d106848d4 100644 --- a/tfhe/examples/fhe_strings/server_key/no_patterns.rs +++ b/tfhe/examples/fhe_strings/server_key/no_patterns.rs @@ -152,9 +152,8 @@ impl ServerKey { // Subtraction by 32 makes the character uppercase uppercase .chars_mut() - .iter_mut() - .zip(lowercase_chars) - .par_bridge() + .par_iter_mut() + .zip(lowercase_chars.into_par_iter()) .for_each(|(char, is_lowercase)| { let mut subtract = self.key.create_trivial_radix(32, 4); @@ -206,9 +205,8 @@ impl ServerKey { // Addition by 32 makes the character lowercase lowercase .chars_mut() - .iter_mut() + .par_iter_mut() .zip(uppercase_chars) - .par_bridge() .for_each(|(char, is_uppercase)| { let mut add = self.key.create_trivial_radix(32, 4); diff --git a/tfhe/examples/fhe_strings/server_key/trim.rs b/tfhe/examples/fhe_strings/server_key/trim.rs index 516153b397..965ac914d0 100644 --- a/tfhe/examples/fhe_strings/server_key/trim.rs +++ b/tfhe/examples/fhe_strings/server_key/trim.rs @@ -68,9 +68,8 @@ impl SplitAsciiWhitespace { // Apply the mask to get the result result .chars_mut() - .iter_mut() - .zip(mask.chars()) - .par_bridge() + .par_iter_mut() + .zip(mask.chars().par_iter()) .for_each(|(char, mask_u8)| { sk.key .bitand_assign_parallelized(char.ciphertext_mut(), mask_u8.ciphertext());