diff --git a/awc/src/ws.rs b/awc/src/ws.rs index 4f0983dc5..5ed37945b 100644 --- a/awc/src/ws.rs +++ b/awc/src/ws.rs @@ -306,7 +306,9 @@ impl WebsocketsRequest { } } else { log::trace!("Invalid connection header: {:?}", conn); - return Err(WsClientError::InvalidConnectionHeader(conn.clone())); + return Err(WsClientError::InvalidConnectionHeader( + conn.clone(), + )); } } else { log::trace!("Missing connection header"); diff --git a/src/test.rs b/src/test.rs index ced6e6e2f..cbbd0367e 100644 --- a/src/test.rs +++ b/src/test.rs @@ -393,7 +393,7 @@ impl TestRequest { /// .set_payload(payload) /// .to_request(); /// - /// let result = read_response_json<_, _, _, Person>(&mut app, req); + /// let result = test::read_response_json<_, _, _, Person>(&mut app, req); /// } /// ``` pub fn read_response_json(app: &mut S, req: R) -> T