Inspectopedia
 
2024.3

Equality assertion can be simplified

Info
New
Last modified: 03 December 2024

Detect assert!(a == b) (and assert!(a != b)) macro call that can be simplified into assert_eq!(a, b) (or assert_ne!(a, b)).