Fix building with no default features

This commit is contained in:
Paolo Barbolini
2020-10-13 09:10:46 +02:00
parent 583df6af18
commit 17d644181a
+2
View File
@@ -43,6 +43,7 @@ pub mod error;
pub mod message;
pub mod transport;
#[cfg(feature = "builder")]
#[macro_use]
extern crate hyperx;
@@ -150,6 +151,7 @@ impl Envelope {
}
}
#[cfg(feature = "builder")]
impl TryFrom<&Headers> for Envelope {
type Error = Error;