-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where relevant, replace equality checks in assert! with assert_eq! #1124
Conversation
Thanks! This looks great. BTW, I hope to have the test failures fixed soon in PR #1123 . |
Cool! |
aaa3fac
to
e8d237e
Compare
I don't understand. What problem did that last commit fix? |
On mac, the |
I don't think that's true, at least not in general. Braces can certainly capture references. For this specific case, how about removing the assignment of |
Braces can capture references because they are copy. Since what's inside the brace is a copy value, not a reference, this is not a problem, even if the macro expands to something that takes the reference of it. That said I fixed it with your suggestion. |
Please squash the commits and I'll merge. Oh, and you'll probably have to rebase now that PR #1123 is done. |
e05b2ff
to
44df74b
Compare
`assert_eq!` gives more debug info when the test fails by default than `assert!`. This should help make debugging easier.
44df74b
to
bbc42e7
Compare
@asomers Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
1124: Where relevant, replace equality checks in assert! with assert_eq! r=asomers a=AdminXVII `assert_eq!` gives more debug info when the test fails by default than `assert!`. This should help make debugging easier. Co-authored-by: Xavier L'Heureux <[email protected]>
Build succeeded
|
assert_eq!
gives more debug info when the test fails by default thanassert!
. This should help make debugging easier.