Skip to content

Commit 2aa8a83

Browse files
refactor(msl-out): Pack4x{I,U}8: make was_signed use `matches!(…)
1 parent 97c3004 commit 2aa8a83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

naga/src/back/msl/writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,7 @@ impl<W: Write> Writer<W> {
24362436
self.put_call_parameters(iter::once(arg), context)?;
24372437
}
24382438
fun @ (Mf::Pack4xI8 | Mf::Pack4xU8) => {
2439-
let was_signed = fun == Mf::Pack4xI8;
2439+
let was_signed = matches!(fun, Mf::Pack4xI8);
24402440
if was_signed {
24412441
write!(self.out, "uint(")?;
24422442
}

0 commit comments

Comments
 (0)