mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-18 20:01:48 +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)> {
|
||||
/// 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,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user