diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-09-16 12:25:25 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-09-16 12:37:33 +0200 |
commit | f335dfd9537cda3cd8115835b6dfaaa4e2a213ff (patch) | |
tree | ed7028db2c5d820c3633de2e195846869bed152e /examples/packages | |
parent | 708adfc6bd494d5ca8be9d7826a967d02c5d82b9 (diff) |
Fix clippy: Use BTreeMap instead of HashMap
clippy complained that we cannot have a derived PartialEq and a handwritten Hash
implementation.
HashMap does not implement Hash. After some research we found that BTreeMap
implements Hash, so we can derive Hash if we use BTreeMap as a key-value type
for the `env_eq` member.
Logically they are the same and this reduces code size, so go for it.
This has the nice benefit, that we do not need to implement PartialOrd and Ord
either.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'examples/packages')
0 files changed, 0 insertions, 0 deletions