mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
chore(linter): use assert_eq! instead of assert! (#8124)
This ensures that both the expected and actual values are printed in the log when the test fails.
This commit is contained in:
parent
f0b1ee5a06
commit
777e13c534
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ fn size_asserts() {
|
|||
// `RuleEnum` runs in a really tight loop, make sure it is small for CPU cache.
|
||||
// A reduction from 168 bytes to 16 results 15% performance improvement.
|
||||
// See codspeed in https://github.com/oxc-project/oxc/pull/1783
|
||||
assert!(std::mem::size_of::<RuleEnum>() == 16);
|
||||
assert_eq!(size_of::<RuleEnum>(), 16);
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue