diff --git a/crates/proof/src/indic.rs b/crates/proof/src/indic.rs index d333d6ec53..cb6d845ef8 100644 --- a/crates/proof/src/indic.rs +++ b/crates/proof/src/indic.rs @@ -129,9 +129,7 @@ pub fn points(script: Script, word: &[char]) -> Vec { } } }; - (1..word.len()) - .filter(|&i| matches!(at(i), Some(Kind::Vowel | Kind::Consonant)) && at(i - 1) != Some(Kind::Virama) && live(i)) - .collect() + (1..word.len()).filter(|&i| matches!(at(i), Some(Kind::Vowel | Kind::Consonant)) && at(i - 1) != Some(Kind::Virama) && live(i)).collect() } #[cfg(test)]