You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It checks for asserts like assert!(1 == 1); and suggests to replace it with assert_eq!(1, 1);.
As far as I know, this is more idiomatic.
Categories (optional)
Kind: most likely clippy::style or maybe clippy::complexity.
The advantage is idiomacy and consistency/consistent style.
It can also improve readability and the _eq/_ne variants make it much easier to search for specific kind of asserts (no regex for example needed).