Skip to content

Commit

Permalink
Relax bounds on some metrics_util::registry::Registry methods (#484)
Browse files Browse the repository at this point in the history
The `Registry` struct definition requires `K: Hashable`, which is
superfluous since it's already required in the impl block.

Moreover, some methods don't require the full `K: Clone + Eq + Hashable`
bounds. Some methods only require `K: Eq + Hashable`, others only
require `K: Hashable`, while others don't require any bounds at all on
`K`.

This commit splits the single impl block into three impl blocks, so
users that have keys that don't satisfy all bounds can still make use of
some methods.
  • Loading branch information
david-perez authored May 11, 2024
1 parent ce9084b commit 82513b3
Showing 1 changed file with 192 additions and 178 deletions.
Loading

0 comments on commit 82513b3

Please sign in to comment.