We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc8e842 commit 0e9cea9Copy full SHA for 0e9cea9
1 file changed
tests/lexer_compliance.rs
@@ -328,10 +328,11 @@ fn test_run_tests_php() {
328
329
// If the first token is a shebang (T_INLINE_HTML starting with #!), remove it
330
// because our lexer discards shebangs.
331
- if let Some((kind, text)) = php_tokens.first() {
332
- if kind == "T_INLINE_HTML" && text.starts_with("#!") {
333
- php_tokens.remove(0);
334
- }
+ if php_tokens
+ .first()
+ .is_some_and(|(kind, text)| kind == "T_INLINE_HTML" && text.starts_with("#!"))
+ {
335
+ php_tokens.remove(0);
336
}
337
338
let code = std::fs::read_to_string(&path).expect("Failed to read file");
0 commit comments