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:
Yuichiro Yamashita 2024-12-26 21:21:01 +09:00 committed by GitHub
parent f0b1ee5a06
commit 777e13c534
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)]