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

Simple change to implement Default on map #30

Closed
wants to merge 2 commits into from

Conversation

mjkoo
Copy link

@mjkoo mjkoo commented Oct 2, 2017

Default trait is implemented for RawMap but not on Map, add an implementation that creates an empty map as in RawMap.

@chris-morgan
Copy link
Owner

I can’t imagine why RawMap implements Default and Map doesn’t.

Given the implementation of Default for RawMap, mightn’t it just as well be put in the impl_common_methods macro? It seems to work.

@mjkoo
Copy link
Author

mjkoo commented Oct 2, 2017

Think that makes sense to me, is this what you meant?

@chris-morgan
Copy link
Owner

Thanks for that. I put it in with a handful of commits I had made locally but apparently not pushed.

I must make a release.

@mjkoo mjkoo deleted the default branch October 2, 2017 04:22
@vi
Copy link

vi commented Nov 12, 2019

When on crates.io?

vi added a commit to vi/websocat that referenced this pull request Dec 5, 2019
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.

3 participants