Apply cargo fmt --all

This commit is contained in:
2025-08-12 22:45:59 -03:00
parent 39c455f617
commit 5806493ca8
6 changed files with 64 additions and 80 deletions
+5 -1
View File
@@ -184,7 +184,11 @@ pub fn censor_message(
for finding in findings {
for (index, _) in normalized.message.match_indices(finding) {
let start_index = normalized.mappings.get(index).cloned().unwrap_or(0);
let end_index = normalized.mappings.get(index + finding.len()).cloned().unwrap_or(original.len());
let end_index = normalized
.mappings
.get(index + finding.len())
.cloned()
.unwrap_or(original.len());
ranges.push((start_index, end_index));
}