diff --git a/crates/oxc_linter/src/lib.rs b/crates/oxc_linter/src/lib.rs index ffcf7a3bf..ec5a500ee 100644 --- a/crates/oxc_linter/src/lib.rs +++ b/crates/oxc_linter/src/lib.rs @@ -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::() == 16); + assert_eq!(size_of::(), 16); } #[derive(Debug)]