Skip to content

Commit eaaefee

Browse files
committed
Specificy concrete type for Runtime::to_socket_addrs
1 parent 9c7fc4a commit eaaefee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/runtime.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{
22
sys::AsSysFd,
3-
traits::{AsyncToSocketAddrs, Executor, Reactor, RuntimeKit, Task},
3+
traits::{Executor, Reactor, RuntimeKit, Task},
44
util::SocketAddrsResolver,
55
};
66
use futures_core::Stream;
@@ -28,9 +28,9 @@ impl<RK: RuntimeKit> Runtime<RK> {
2828
pub fn to_socket_addrs<A: ToSocketAddrs + Send + 'static>(
2929
&self,
3030
addrs: A,
31-
) -> impl AsyncToSocketAddrs
31+
) -> SocketAddrsResolver<'_, RK, A>
3232
where
33-
<A as std::net::ToSocketAddrs>::Iter: Iterator<Item = SocketAddr> + Send + 'static,
33+
<A as std::net::ToSocketAddrs>::Iter: Send + 'static,
3434
{
3535
SocketAddrsResolver {
3636
runtime: self,

0 commit comments

Comments
 (0)