There's a superfluous Box in the trie-like data structure ListNode. HashMap already provides indirection, so you don't actually need to Box it.
I also bumped the edition to 2018, ran rustfmt, and used criterion for your benchmarks so you don't have to run nightly anymore. If you'd like like the Box change I can just that in a separate PR, but I thought there's no reason not to just submit this all in one!
There's a superfluous
Box
in the trie-like data structureListNode
.HashMap
already provides indirection, so you don't actually need toBox
it.I also bumped the edition to 2018, ran rustfmt, and used
criterion
for your benchmarks so you don't have to run nightly anymore. If you'd like like theBox
change I can just that in a separate PR, but I thought there's no reason not to just submit this all in one!