Fix app-server protocol clippy

This commit is contained in:
Nathan Liebrecht
2026-04-10 14:45:06 -07:00
parent e4680988b9
commit e76d1f0bf0
@@ -296,10 +296,10 @@ fn normalize_typescript_fixture_text(text: &str) -> String {
let mut normalized = String::with_capacity(text.len());
for line in text.split_inclusive('\n') {
if let Some(line) = line.strip_suffix('\n') {
normalized.push_str(line.trim_end_matches(|ch| ch == ' ' || ch == '\t'));
normalized.push_str(line.trim_end_matches([' ', '\t']));
normalized.push('\n');
} else {
normalized.push_str(line.trim_end_matches(|ch| ch == ' ' || ch == '\t'));
normalized.push_str(line.trim_end_matches([' ', '\t']));
}
}
normalized