Skip to content

Commit

Permalink
Expose SerializableMap
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Nov 19, 2024
1 parent 1394181 commit 6d905a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manul/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern crate alloc;
pub mod combinators;
pub mod protocol;
pub mod session;
pub(crate) mod utils;
pub mod utils;

#[cfg(any(test, feature = "dev"))]
pub mod dev;
Expand Down
2 changes: 1 addition & 1 deletion manul/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
mod serializable_map;

pub(crate) use serializable_map::SerializableMap;
pub use serializable_map::SerializableMap;
2 changes: 1 addition & 1 deletion manul/src/utils/serializable_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use serde::{
/// This implementation serializes maps as sequences of key/value pairs,
/// and checks for duplicate keys on deserialization.
#[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) struct SerializableMap<K, V>(BTreeMap<K, V>);
pub struct SerializableMap<K, V>(BTreeMap<K, V>);

impl<K, V> From<BTreeMap<K, V>> for SerializableMap<K, V> {
fn from(source: BTreeMap<K, V>) -> Self {
Expand Down

0 comments on commit 6d905a0

Please sign in to comment.