summaryrefslogtreecommitdiffstats
path: root/vendor/litemap/tests
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/litemap/tests')
-rw-r--r--vendor/litemap/tests/store.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/litemap/tests/store.rs b/vendor/litemap/tests/store.rs
index 0cc8792f8..bd28bee96 100644
--- a/vendor/litemap/tests/store.rs
+++ b/vendor/litemap/tests/store.rs
@@ -52,6 +52,13 @@ impl<K, V> Store<K, V> for VecWithDefaults<(K, V)> {
}
}
+impl<K: Ord, V> StoreFromIterable<K, V> for VecWithDefaults<(K, V)> {
+ fn lm_sort_from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self {
+ let v: Vec<_> = Vec::lm_sort_from_iter(iter);
+ Self(v)
+ }
+}
+
impl<K, V> StoreMut<K, V> for VecWithDefaults<(K, V)> {
#[inline]
fn lm_with_capacity(capacity: usize) -> Self {