This PR fixes issue #31 by explicitly passing a mutable reference to the count into entry creation. It's not the most elegant, but it works well enough and should only adds small amount to the memory footprint of entry manipulation.
This PR also includes a change that adds clippy lints to the tests, and fixes the existing "problems". It's only included because github makes stacked PRs from outside the repository pretty difficult. The clippy changes are pretty simple, but if you really don't want this included, I can strip it out.
This PR fixes issue #31 by explicitly passing a mutable reference to the count into entry creation. It's not the most elegant, but it works well enough and should only adds small amount to the memory footprint of entry manipulation.
This PR also includes a change that adds clippy lints to the tests, and fixes the existing "problems". It's only included because github makes stacked PRs from outside the repository pretty difficult. The clippy changes are pretty simple, but if you really don't want this included, I can strip it out.