diff --git a/src/connect.rs b/src/connect.rs index d6981e3..4c4f4c1 100644 --- a/src/connect.rs +++ b/src/connect.rs @@ -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, @@ -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 } } } diff --git a/src/socks/server/connection/bind.rs b/src/socks/server/connection/bind.rs index 42c9181..180798c 100644 --- a/src/socks/server/connection/bind.rs +++ b/src/socks/server/connection/bind.rs @@ -246,7 +246,7 @@ impl Bind { /// 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() } } diff --git a/src/socks/server/connection/connect.rs b/src/socks/server/connection/connect.rs index adce5c2..daa3c15 100644 --- a/src/socks/server/connection/connect.rs +++ b/src/socks/server/connection/connect.rs @@ -72,7 +72,7 @@ impl Connect { impl Connect { /// 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() }