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: Use correct trait for display #22

Merged
merged 2 commits into from
Sep 21, 2019
Merged

Conversation

neoeinstein
Copy link
Contributor

The current implementation incorrectly delegates Display on Guard to the Debug implementation. It should instead delegate to the underlying Display implementation.

@vorner
Copy link
Owner

vorner commented Sep 19, 2019

Thank you for spotting this!

However, the problem is, this is technically a API-breaking change ‒ code that compiled previously could stop compiling. On the other hand, if people actually used this, they would have noticed, likely, like you did, so I'm inclined to just release it with the patch version update only. What do you think is the better way forward? Or, do you know of an easy way to run an update on all reverse dependencies and see if they compile and pass tests?

@neoeinstein
Copy link
Contributor Author

I think that depends on how you see this. Yes, this would be a breaking change, but it is due to a bug in the API. I took a look at the list of crates that depend on arc-swap versions 0.4, and none of those listed attempt to use Display on an ArcSwap, so none seem to exercise this particular bug. I can certainly see incrementing the minor version to 0.5, but I figured this is a bug fix, which is why my change initially marks for 0.4.3. I'm happy to change it to 0.5 if you prefer.

@vorner vorner merged commit c1fbc9b into vorner:master Sep 21, 2019
@vorner
Copy link
Owner

vorner commented Sep 21, 2019

Thank you for the research, I think this confirms my suspicion this is fine to go ahead with the patch version :-).

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.

None yet

2 participants