Skip to content

Commit

Permalink
Fixes test clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
aedm committed Nov 7, 2024
1 parent 03a4ffd commit 39a8e41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions naga/tests/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,11 @@ error: Function [1] 'main' is invalid
)];

for (source, expected_err) in cases {
let module = naga::front::wgsl::parse_str(&source).unwrap();
let module = naga::front::wgsl::parse_str(source).unwrap();
let err = valid::Validator::new(Default::default(), valid::Capabilities::all())
.validate_no_overrides(&module)
.expect_err("module should be invalid");
println!("{}", err.emit_to_string(&source));
assert_eq!(err.emit_to_string(&source), expected_err);
println!("{}", err.emit_to_string(source));
assert_eq!(err.emit_to_string(source), expected_err);
}
}

0 comments on commit 39a8e41

Please sign in to comment.