1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-01-18 20:01:48 +01:00

remove generic

This commit is contained in:
Nikolay Kim 2019-03-13 15:52:51 -07:00
parent a73600fbcd
commit b483200037

View File

@ -54,9 +54,9 @@ impl Connect<(&'static str, u16)> {
impl Connect<(String, u16)> {
/// Create new `Connect` instance.
pub fn new<T: AsRef<str>>(host: T, port: u16) -> Connect<(String, u16)> {
pub fn new(host: String, port: u16) -> Connect<(String, u16)> {
Connect {
req: (host.as_ref().to_owned(), port),
req: (host, port),
addr: None,
}
}