Apply suggestions from code review

Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
Igor Aleksanov 2020-09-07 13:34:53 +03:00 committed by GitHub
parent 93bc3a7dd0
commit ba9a09ba9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -193,8 +193,8 @@ impl Client {
self.request(Method::OPTIONS, url)
}
/// Initialize a WebSockets connection.
/// This method returns a builder structure to establish a WebSocket connection.
/// Initialize a WebSocket connection.
/// Returns a WebSocket connection builder.
pub fn ws<U>(&self, url: U) -> ws::WebsocketsRequest
where
Uri: TryFrom<U>,

View File

@ -1,7 +1,6 @@
//! Websockets client
//!
//! This module contains type definitions required to use [`awc::Client`](../struct.Client.html) as a WebSocket client.
//! To use `awc::Client`
//! Type definitions required to use [`awc::Client`](../struct.Client.html) as a WebSocket client.
//!
//! # Example
//!
@ -26,7 +25,6 @@
//! assert_eq!(response, ws::Frame::Text("Echo".as_bytes().into()));
//! }
//! ```
//!
use std::convert::TryFrom;
use std::net::SocketAddr;