Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small tweaks to the
multimap!()
macro (#30)
* Small tweaks to the `multimap!()` macro 1. Allow trailing comma. 2. Prefix `MultiMap` with `$crate::` so there won't be name clash (see https://doc.rust-lang.org/reference/macros-by-example.html#hygiene). 3. Instantiate the map with enough capacity to hold the elements, preventing further allocations (for the actual counting method, see https://danielkeep.github.io/tlborm/book/blk-counting.html#slice-length). * Bump minor version
- Loading branch information