Skip to content

Commit ad3f460

Browse files
committed
chore: Use concrete type instead of generic type in BTreeMapExt impl
1 parent 14b868f commit ad3f460

File tree

1 file changed

+2
-5
lines changed
  • crates/stackable-versioned-macros/src/codegen

1 file changed

+2
-5
lines changed

crates/stackable-versioned-macros/src/codegen/changes.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,10 @@ where
8787
fn get_expect(&self, key: &K) -> &V;
8888
}
8989

90-
impl<K, V> BTreeMapExt<K, V> for BTreeMap<K, V>
91-
where
92-
K: Ord,
93-
{
90+
impl<V> BTreeMapExt<Version, V> for BTreeMap<Version, V> {
9491
const MESSAGE: &'static str = "internal error: chain must contain version";
9592

96-
fn get_expect(&self, key: &K) -> &V {
93+
fn get_expect(&self, key: &Version) -> &V {
9794
self.get(key).expect(Self::MESSAGE)
9895
}
9996
}

0 commit comments

Comments
 (0)