Skip to content

Commit 6b37ac1

Browse files
committed
Fix clippy
1 parent ba55c27 commit 6b37ac1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/history/history.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@ impl History {
423423
let b_start = b.match_bounds[0].0;
424424
let a_len = a.match_bounds[0].1 - a_start;
425425
let b_len = b.match_bounds[0].1 - b_start;
426-
let a_score = a.rank as f64
426+
let a_score = a.rank
427427
+ (fuzzy as f64) * (1.0 / (1.0 + (a_start as f64 * start_weighting) + (a_len as f64 * len_weighting)));
428428

429-
let b_score = b.rank as f64
429+
let b_score = b.rank
430430
+ (fuzzy as f64) * (1.0 / (1.0 + (b_start as f64 * start_weighting) + (b_len as f64 * len_weighting)));
431431

432432
b_score.partial_cmp(&a_score).unwrap_or(std::cmp::Ordering::Equal)

0 commit comments

Comments
 (0)