Replace if … { assert!(true, "{}", err); } else { panic!() }` with `assert!(result.is_err(), …);`
Replace `assert!(false, …)`/`assert!(false)` with `panic!(…)`/`panic!()`
Unify `assert_eq!(…)`/`assert_ne!(…)` to take args in order of `…!(actual, expected)`While there isn't an explicit convention for this in Rust the stdlib docs all use `assert_eq!(actual, expected)`
Unify `assert_eq!(…)`/`assert_ne!(…)` to take args in order of `…!(actual, expected)`While there isn't an explicit convention for this in Rust the stdlib docs all use `assert_eq!(actual, expected)`, making it a sort of implicit convention.
show more ...
Move all to top level