mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-29 17:51:35 +00:00
fix(dcutr): rename error types to bypass cargo-semver-checks
hickup (#3213)
`cargo semver-checks` is still missing features in regards to properly detecting renamed exports. To make our CI pass again, we remove the renamed export, replace it with type-aliases and deprecate them to point users types exported under a module which now follows the conventions set in #2217.
This commit is contained in:
@ -26,13 +26,11 @@
|
||||
pub mod behaviour;
|
||||
mod handler;
|
||||
mod protocol;
|
||||
|
||||
pub use protocol::{
|
||||
inbound::UpgradeError as InboundUpgradeError, outbound::UpgradeError as OutboundUpgradeError,
|
||||
PROTOCOL_NAME,
|
||||
};
|
||||
|
||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||
mod message_proto {
|
||||
include!(concat!(env!("OUT_DIR"), "/holepunch.pb.rs"));
|
||||
}
|
||||
|
||||
pub use protocol::PROTOCOL_NAME;
|
||||
pub type InboundUpgradeError = protocol::inbound::UpgradeError;
|
||||
pub type OutboundUpgradeError = protocol::outbound::UpgradeError;
|
||||
|
Reference in New Issue
Block a user