From 6d905a0f8143a982a7252ad634d01458c84f8096 Mon Sep 17 00:00:00 2001 From: Bogdan Opanchuk Date: Tue, 19 Nov 2024 11:35:06 -0800 Subject: [PATCH] Expose SerializableMap --- manul/src/lib.rs | 2 +- manul/src/utils.rs | 2 +- manul/src/utils/serializable_map.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manul/src/lib.rs b/manul/src/lib.rs index df54003..8ad85bc 100644 --- a/manul/src/lib.rs +++ b/manul/src/lib.rs @@ -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; diff --git a/manul/src/utils.rs b/manul/src/utils.rs index 947a4bc..856394a 100644 --- a/manul/src/utils.rs +++ b/manul/src/utils.rs @@ -2,4 +2,4 @@ mod serializable_map; -pub(crate) use serializable_map::SerializableMap; +pub use serializable_map::SerializableMap; diff --git a/manul/src/utils/serializable_map.rs b/manul/src/utils/serializable_map.rs index eb46988..054bea7 100644 --- a/manul/src/utils/serializable_map.rs +++ b/manul/src/utils/serializable_map.rs @@ -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(BTreeMap); +pub struct SerializableMap(BTreeMap); impl From> for SerializableMap { fn from(source: BTreeMap) -> Self {