diff --git a/codex-rs/app-server-protocol/src/schema_fixtures.rs b/codex-rs/app-server-protocol/src/schema_fixtures.rs index 2ecdfe80ec..731a9bcf95 100644 --- a/codex-rs/app-server-protocol/src/schema_fixtures.rs +++ b/codex-rs/app-server-protocol/src/schema_fixtures.rs @@ -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