Skip to content
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

fix: implement custom PartialEq for connection::Error #2109

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Feb 6, 2024

Description of changes:

We're currently getting a failure on rustc beta on main (and a handful of warnings). This PR addresses those issues.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft marked this pull request as ready for review February 6, 2024 23:46
impl PartialEq for Error {
#[inline]
fn eq(&self, other: &Self) -> bool {
// ignore the `source` attribute when considering if errors are equal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is making the test fail only for rust beta?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason the beta version started calculating sources differently and we're now getting failures from it. i didn't dig in too much, since it's a good idea to avoid comparing line numbers anyway as part of equivalence.

@camshaft camshaft merged commit 8acab37 into main Feb 7, 2024
119 of 120 checks passed
@camshaft camshaft deleted the camshaft/beta-fix branch February 7, 2024 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants