diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs index 0c871350..168e5542 100644 --- a/actix-connect/src/connect.rs +++ b/actix-connect/src/connect.rs @@ -86,7 +86,7 @@ impl Connect<()> { impl Connect { /// Create new `Connect` instance. - pub fn with_request(req: T) -> Connect { + pub fn with(req: T) -> Connect { Connect { req, addr: None } }