mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 00:01:11 +01:00
add Display impl for Connect
This commit is contained in:
parent
4b16af29c7
commit
a8a831a098
@ -1,7 +1,7 @@
|
||||
use std::collections::VecDeque;
|
||||
use std::io;
|
||||
use std::net::SocketAddr;
|
||||
use std::time::Duration;
|
||||
use std::{fmt, io};
|
||||
|
||||
use futures::{
|
||||
future::{ok, FutureResult},
|
||||
@ -87,6 +87,12 @@ impl HostAware for Connect {
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Connect {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}:{}", self.host, self.port)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Connector {
|
||||
resolver: Resolver<Connect>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user