-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #449 - tomcc-reactor:master, r=Amanieu
Allow serializing `HashMap`s that use a custom allocator Hi, I'm using `HashMap` with custom allocators (eg. not `Global`) in my project, and I got hit with a "`HashMap` doesn't implement trait `Serialize`" error. It looks like it has a very trivial fix, eg. exposing the `A` generic parameter on the impl so that it doesn't default to `Global`. I have a very limited understanding of HashBrown so let me know if this is a change that makes sense! - Is `crate::raw::Allocator` the right way to import the `Allocator` trait? - Do you need `Deserialize` to be fixed as well? - What about `HashSet`? Anyway, if the change makes sense I can try to clean it up a bit more :)
- Loading branch information
Showing
1 changed file
with
41 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters