mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
proof: rustfmt the indic module
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d14a23d33b
commit
4ecc5e3ed0
1 file changed
+1
-3
@@ -129,9 +129,7 @@ pub fn points(script: Script, word: &[char]) -> Vec<usize> {
|
||||
}
|
||||
}
|
||||
};
|
||||
(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)]
|
||||
|
||||
Reference in new issue
Block a user