Minor code style change

This commit is contained in:
Loïc Lecrenier 2022-10-24 15:30:43 +02:00
parent be302fd250
commit 9a569d73d1

View File

@ -83,7 +83,7 @@ pub fn index_prefix_word_database(
let mut writer = let mut writer =
create_writer(chunk_compression_type, chunk_compression_level, tempfile::tempfile()?); create_writer(chunk_compression_type, chunk_compression_level, tempfile::tempfile()?);
for proximity in 1..=max_proximity - 1 { for proximity in 1..max_proximity {
for prefix in new_prefixes.iter() { for prefix in new_prefixes.iter() {
let mut prefix_key = vec![]; let mut prefix_key = vec![];
prefix_key.push(proximity); prefix_key.push(proximity);