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

Derive missing trait implementations for cursor #23607

Merged
merged 1 commit into from
Mar 24, 2015
Merged

Conversation

mahkoh
Copy link
Contributor

@mahkoh mahkoh commented Mar 22, 2015

Closes #23599

r? @alexcrichton

@GuillaumeGomez
Copy link
Member

I commented on your issue to say I was working on it but whatever... I made a different Debug implementation so I'll create my own PR.

EDIT: My pr is #23609. Your implementation would display the inner buffer too if I'm not wrong and that's not what we would want in here.

@@ -31,6 +31,7 @@ use slice;
/// over `T` itself. Instead, specific implementations are provided for various
/// in-memory buffer types like `Vec<u8>` and `&[u8]`.
#[stable(feature = "rust1", since = "1.0.0")]
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
Copy link
Member

Choose a reason for hiding this comment

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

Can this leave out Copy for now? I've generally tried to avoid that wherever possible. I also think that it's fine to remove Eq/PartialEq as they should be pretty easy to add back in the future, and I think that comparing I/O objects for equality is a pretty rare operation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why remove Copy?

@mahkoh
Copy link
Contributor Author

mahkoh commented Mar 23, 2015

Updated.

@alexcrichton
Copy link
Member

@bors: r+ d6fb7e9 rollup

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.

Cursor doesn't implement Debug
4 participants