Skip to content

Commit

Permalink
Generalize serialize implementation for LinearMap
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jul 1, 2024
1 parent a143c12 commit d4dde75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ser.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use core::hash::{BuildHasher, Hash};

use crate::{
binary_heap::Kind as BinaryHeapKind, storage::Storage, string::StringInner, vec::VecInner,
BinaryHeap, Deque, HistoryBuffer, IndexMap, IndexSet, LinearMap,
binary_heap::Kind as BinaryHeapKind, linear_map::LinearMapInner, storage::Storage,
string::StringInner, vec::VecInner, BinaryHeap, Deque, HistoryBuffer, IndexMap, IndexSet,
};
use serde::ser::{Serialize, SerializeMap, SerializeSeq, Serializer};

Expand Down Expand Up @@ -110,7 +110,7 @@ where
}
}

impl<K, V, const N: usize> Serialize for LinearMap<K, V, N>
impl<K, V, S: Storage> Serialize for LinearMapInner<K, V, S>
where
K: Eq + Serialize,
V: Serialize,
Expand Down

0 comments on commit d4dde75

Please sign in to comment.