Apply cargo fmt --all
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user