Skip to content

Commit 2351e33

Browse files
committed
Code quality
1 parent 0a23fc7 commit 2351e33

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

algorithms/linfa-preprocessing/src/countgrams/hyperparams.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ impl ParamGuard for CountVectorizerParams {
227227
min_freq, max_freq,
228228
))
229229
} else {
230-
let regex = SerdeRegex::new(&self.0.split_regex_expr)?;
231-
let _ = self.0.split_regex.set(regex);
232-
230+
let _ = self.0.split_regex.set(SerdeRegex::new(&self.0.split_regex_expr)?);
233231
Ok(&self.0)
234232
}
235233
}

0 commit comments

Comments
 (0)