style: 修复 clippy --all-targets 告警

This commit is contained in:
2026-06-30 15:18:13 +08:00
parent 9f3e353f56
commit d5c292d33f
5 changed files with 129 additions and 128 deletions
@@ -170,8 +170,7 @@ fn structural_hash_distinguishes_optional_chain_shape() {
#[test]
fn compiled_module_rejects_optional_chain_assignment_target() {
let allocator = Allocator::default();
match oxide_parser::parse(&allocator, "a?.b = 1") {
Ok(program) => assert!(Compiler::new().compile(&program).is_err()),
Err(_) => {}
if let Ok(program) = oxide_parser::parse(&allocator, "a?.b = 1") {
assert!(Compiler::new().compile(&program).is_err());
}
}