From b48320003779116879605fcf6b0c565620b4b637 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 13 Mar 2019 15:52:51 -0700 Subject: [PATCH] remove generic --- actix-connect/src/connect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs index 7b522929..970f7b26 100644 --- a/actix-connect/src/connect.rs +++ b/actix-connect/src/connect.rs @@ -54,9 +54,9 @@ impl Connect<(&'static str, u16)> { impl Connect<(String, u16)> { /// Create new `Connect` instance. - pub fn new>(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, } }