Unverified Commit 6482f0fb authored by Zeki Sherif's avatar Zeki Sherif Committed by GitHub
Browse files

Make HyperAdapter accessible (#515)

* Make HyperAdapter accessible

* Rename hyper module to hyper_ext to avoid conflict with hyer crate
parent 28c9d764
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -25,6 +25,12 @@ pub mod test_connection;
#[cfg(feature = "hyper")]
mod hyper_impls;

/// Re-export HyperAdapter
#[cfg(feature = "hyper")]
pub mod hyper_ext {
    pub use crate::hyper_impls::HyperAdapter as Adapter;
}

// The types in this module are only used to write the bounds in [`Client::check`]. Customers will
// not need them. But the module and its types must be public so that we can call `check` from
// doc-tests.