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

Implement Debug for public types #83 #105

Merged
merged 3 commits into from
Apr 20, 2017
Merged

Implement Debug for public types #83 #105

merged 3 commits into from
Apr 20, 2017

Conversation

kper
Copy link
Contributor

@kper kper commented Apr 18, 2017

Is the message for the impl Debug in src/ffi.rs line 111 okay?

src/bufreader.rs Outdated
@@ -13,6 +13,7 @@ use std::io;
use std::io::prelude::*;
use std::mem;

#[derive(Debug)]
Copy link
Member

Choose a reason for hiding this comment

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

Could this type actually have a custom debug impl like BufReader in the standard library? That way we can avoid accidentally dumping out kilobytes of raw data :)

@alexcrichton
Copy link
Member

Everything looks great to me, thanks so much @kper! Just one small nit but otherwise looks ready to merge.

@alexcrichton alexcrichton merged commit 3012817 into rust-lang:master Apr 20, 2017
@alexcrichton
Copy link
Member

Thanks again for the PR!

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