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

Why does Debug require Clone ? #81

Closed
zeroexcuses opened this issue Mar 30, 2019 · 1 comment
Closed

Why does Debug require Clone ? #81

zeroexcuses opened this issue Mar 30, 2019 · 1 comment

Comments

@zeroexcuses
Copy link

I'm looking at impl of Debug for HashMap.

https://github.com/bodil/im-rs/blob/master/src/hash/map.rs#L1558-L1559

Why do K & V need to have Clone in order to derive Debug for HashMap<K, V> ?

@bodil
Copy link
Owner

bodil commented Apr 8, 2019

I expect it's a leftover from when HashMap itself required Clone on everything. Probably shouldn't be necessary any more.

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

No branches or pull requests

2 participants