Remove unnecessary Serialize/Deserialize traits from VecMap.

It's never stored on disk. Let's be tidy.
This commit is contained in:
Heikki Linnakangas
2022-05-10 16:28:00 +03:00
committed by Kirill Bulatov
parent 6cb14b4200
commit d710dff975

View File

@@ -1,11 +1,9 @@
use std::{alloc::Layout, cmp::Ordering, ops::RangeBounds};
use serde::{Deserialize, Serialize};
/// Ordered map datastructure implemented in a Vec.
/// Append only - can only add keys that are larger than the
/// current max key.
#[derive(Clone, Debug, Serialize, Deserialize)]
#[derive(Clone, Debug)]
pub struct VecMap<K, V>(Vec<(K, V)>);
impl<K, V> Default for VecMap<K, V> {