From 3cc93e796aad59b3996fc26b8839a783e0307925 Mon Sep 17 00:00:00 2001 From: "Adam C. Foltzer" Date: Mon, 2 Dec 2019 15:45:22 -0800 Subject: [PATCH] feat(server): give `Server::local_addr` a more general type Allows `local_addr` to work for any executor type, rather than just the default `Exec`. The underlying `SpawnAll::local_addr()` is already similarly general, so no other changes are needed other than adding the extra type parameter to the `impl`. --- src/server/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/mod.rs b/src/server/mod.rs index 3496dc1a36..3d525b3206 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -134,7 +134,7 @@ impl Server { } #[cfg(feature = "tcp")] -impl Server { +impl Server { /// Returns the local address that this server is bound to. pub fn local_addr(&self) -> SocketAddr { self.spawn_all.local_addr()