mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
style: 修复 clippy --all-targets 告警
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user