mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-22 05:35:08 +02:00
add simple TestServer for integrational tests cases
This commit is contained in:
@@ -191,7 +191,7 @@ impl<T, A, H, U, V> HttpServer<T, A, H, U>
|
||||
|
||||
/// Get addresses of bound sockets.
|
||||
pub fn addrs(&self) -> Vec<net::SocketAddr> {
|
||||
self.sockets.keys().map(|addr| addr.clone()).collect()
|
||||
self.sockets.keys().cloned().collect()
|
||||
}
|
||||
|
||||
/// The socket address to bind
|
||||
|
Reference in New Issue
Block a user