Skip to content

Commit

Permalink
Run cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpfs committed Dec 31, 2022
1 parent cec4628 commit 2703c24
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/score/default/bm25.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ impl<T: Debug> ScoreCalculator<T, BM25TermCalculations> for BM25 {
tf = ((self.bm25k1 + 1_f64) * tf)
/ (self.bm25k1
* ((1_f64 - self.bm25b)
+ self.bm25b
* (field_length.to_owned() as f64 / avg_field_length))
+ self.bm25b * (field_length.to_owned() as f64 / avg_field_length))
+ tf);
score += tf
* pre_calculations.idf
Expand Down

0 comments on commit 2703c24

Please sign in to comment.