Skip to content

Commit

Permalink
refactor: remove superfluous error type
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee authored and joshuef committed Jan 20, 2023
1 parent 0538e57 commit a5e16fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@ pub enum EndpointError {
IoError(#[from] io::Error),
}

/// Errors returned by [`Endpoint::new_client`](crate::Endpoint::new_client).
#[derive(Debug, Error)]
pub enum ClientEndpointError {
/// Failed to bind UDP socket.
#[error("Failed to bind UDP socket")]
Socket(#[source] io::Error),

/// Io error.
#[error(transparent)]
Io(#[from] io::Error),
}

/// Errors that can cause connection loss.
// This is a copy of `quinn::ConnectionError` without the `*Closed` variants, since we want to
// separate them in our interface.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub use connection::{Connection, ConnectionIncoming, RecvStream, SendStream};
pub use endpoint::{Endpoint, IncomingConnections};
pub use endpoint_builder::EndpointBuilder;
pub use error::{
ClientEndpointError, Close, ConnectionError, EndpointError, InternalConfigError, RecvError,
Close, ConnectionError, EndpointError, InternalConfigError, RecvError,
RpcError, SendError, StreamError, TransportErrorCode, UnsupportedStreamOperation,
};
pub use wire_msg::{UsrMsgBytes, WireMsg};
Expand Down

0 comments on commit a5e16fa

Please sign in to comment.