Use assert_eq! rather than assert! where possible
auto merge of #6601 : cmr/rust/assert_eq, r=Aatch