1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-01 17:27:18 +02:00

clippy fixes (#2296)

This commit is contained in:
Rob Ede
2021-07-12 16:55:24 +01:00
committed by GitHub
parent 7ae132cb68
commit 5a14ffeef2
7 changed files with 23 additions and 13 deletions

View File

@@ -104,6 +104,8 @@ impl ServiceConfig {
}
/// Returns the local address that this server is bound to.
///
/// Returns `None` for connections via UDS (Unix Domain Socket).
#[inline]
pub fn local_addr(&self) -> Option<net::SocketAddr> {
self.0.local_addr