From 6044b8036243e33255522489f6ec66076ebfdc73 Mon Sep 17 00:00:00 2001 From: Irevoire Date: Wed, 30 Jun 2021 00:35:26 +0200 Subject: [PATCH] Update milli/src/search/matching_words.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Renault --- milli/src/search/matching_words.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/milli/src/search/matching_words.rs b/milli/src/search/matching_words.rs index 9aad52110..291378b43 100644 --- a/milli/src/search/matching_words.rs +++ b/milli/src/search/matching_words.rs @@ -165,7 +165,6 @@ fn bytes_to_highlight(source: &str, target: &str) -> usize { let mut minimum = 2; for x in 0..=n { - // let dist = matrix[(x + 1, m + 1)]; let min_dist = (0..=m).map(|y| matrix[(x + 1, y + 1)]).min().unwrap(); if min_dist <= 2 { minimum = x;