diff --git a/Cargo.toml b/Cargo.toml index dd77d072..a0a983a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bromine" -version = "0.18.2" +version = "0.18.3" authors = ["trivernis "] edition = "2018" readme = "README.md" @@ -32,6 +32,7 @@ bincode = { version = "1.3.3", optional = true } serde_json = { version = "1.0.79", optional = true } [dependencies.typemap_rev] +version = "0.1.5" git = "https://github.com/Trivernis/typemap_rev" rev = "750c67bffe8024d2a47725daa473f068ad653fc4" diff --git a/src/ipc/builder.rs b/src/ipc/builder.rs index 8233c237..08d3ab9a 100644 --- a/src/ipc/builder.rs +++ b/src/ipc/builder.rs @@ -12,6 +12,7 @@ use crate::namespaces::namespace::Namespace; #[cfg(feature = "serialize")] use crate::payload::DynamicSerializer; use crate::protocol::AsyncStreamProtocolListener; +use std::any::{Any, TypeId}; use std::collections::HashMap; use std::future::Future; use std::pin::Pin; @@ -100,7 +101,10 @@ where } /// Adds all the data from the other given type map - pub fn insert_all(mut self, value: TypeMap) -> Self { + pub fn insert_all)>>( + mut self, + value: I, + ) -> Self { self.data.extend(value); self