mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-31 12:42:09 +01:00
remove generic
This commit is contained in:
parent
a73600fbcd
commit
b483200037
@ -54,9 +54,9 @@ impl Connect<(&'static str, u16)> {
|
|||||||
|
|
||||||
impl Connect<(String, u16)> {
|
impl Connect<(String, u16)> {
|
||||||
/// Create new `Connect` instance.
|
/// 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 {
|
Connect {
|
||||||
req: (host.as_ref().to_owned(), port),
|
req: (host, port),
|
||||||
addr: None,
|
addr: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user