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 Easy2::fmt to print handler correctly #353

Merged
merged 1 commit into from
Aug 22, 2020

Conversation

uasi
Copy link
Contributor

@uasi uasi commented Aug 22, 2020

No description provided.

@@ -3019,7 +3019,7 @@ impl<H: fmt::Debug> fmt::Debug for Easy2<H> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("Easy")
.field("handle", &self.inner.handle)
.field("handler", &self.inner.handle)
.field("handler", &self.inner.handler)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is in impl<H: fmt::Debug> fmt::Debug for Easy2<H>, so handler certainly implements fmt::Debug.

@alexcrichton
Copy link
Owner

Oops, thanks!

@alexcrichton alexcrichton merged commit 6e714f7 into alexcrichton:master Aug 22, 2020
@uasi uasi deleted the fix-easy2-fmt branch August 22, 2020 17:49
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