fix(core): remove UpgradeError from public API

Not making this private was an oversight from an earlier refactoring.

Related: #3915.

Pull-Request: #4012.
This commit is contained in:
Thomas Eizinger
2023-06-05 17:16:04 +02:00
committed by GitHub
parent 68af6669ab
commit 1d3db7d9a8
3 changed files with 5 additions and 9 deletions

View File

@@ -125,7 +125,7 @@ pub use peer_record::PeerRecord;
pub use signed_envelope::SignedEnvelope;
pub use translation::address_translation;
pub use transport::Transport;
pub use upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeError, UpgradeInfo};
pub use upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeInfo};
#[derive(Debug, thiserror::Error)]
#[error(transparent)]

View File

@@ -69,11 +69,11 @@ mod transfer;
pub(crate) use apply::{
apply, apply_inbound, apply_outbound, InboundUpgradeApply, OutboundUpgradeApply,
};
pub(crate) use error::UpgradeError;
use futures::future::Future;
pub use self::{
denied::DeniedUpgrade,
error::UpgradeError,
pending::PendingUpgrade,
ready::ReadyUpgrade,
select::SelectUpgrade,