Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub struct HttpConnector<'a> {
// ==== impl Connector ====

impl Connector {
/// Constructs a new `Connector` instance, accepting optional IPv6 CIDR and
/// Constructs a new [`Connector`] instance, accepting optional IPv6 CIDR and
/// fallback IP address as parameters.
pub(super) fn new(
cidr: Option<IpCidr>,
Expand All @@ -83,21 +83,21 @@ impl Connector {
}
}

/// Creates a new `HttpConnector` using the current configuration.
/// Creates a new [`HttpConnector`] using the current configuration.
#[inline]
pub fn http_connector(&self) -> HttpConnector {
pub fn http_connector(&self) -> HttpConnector<'_> {
HttpConnector { inner: self }
}

/// Creates a new `TcpConnector` using the current configuration.
/// Creates a new [`TcpConnector`] using the current configuration.
#[inline]
pub fn tcp_connector(&self) -> TcpConnector {
pub fn tcp_connector(&self) -> TcpConnector<'_> {
TcpConnector { inner: self }
}

/// Creates a new `UdpConnector` using the current configuration.
/// Creates a new [`UdpConnector`] using the current configuration.
#[inline]
pub fn udp_connector(&self) -> UdpConnector {
pub fn udp_connector(&self) -> UdpConnector<'_> {
UdpConnector { inner: self }
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/socks/server/connection/bind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl Bind<Ready> {

/// Split the connection into a read and a write half.
#[inline]
pub fn split(&mut self) -> (ReadHalf, WriteHalf) {
pub fn split(&mut self) -> (ReadHalf<'_>, WriteHalf<'_>) {
self.stream.split()
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/socks/server/connection/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl Connect<NeedReply> {
impl Connect<Ready> {
/// Returns the read/write half of the stream.
#[inline]
pub fn split(&mut self) -> (ReadHalf, WriteHalf) {
pub fn split(&mut self) -> (ReadHalf<'_>, WriteHalf<'_>) {
self.stream.split()
}

Expand Down
Loading