mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 23:51:06 +01:00
test: fix doc test
This commit is contained in:
parent
db2193b8c5
commit
39291c86b7
@ -29,7 +29,7 @@ pub use self::{
|
|||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use actix_web::{middleware::Logger, web, App, Error, HttpRequest, HttpResponse, HttpServer};
|
/// use actix_web::{middleware::Logger, web, App, Error, HttpRequest, HttpResponse, HttpServer};
|
||||||
/// use actix_ws::Message;
|
/// use actix_ws::Message;
|
||||||
/// use futures::stream::StreamExt as _;
|
/// use futures_util::StreamExt as _;
|
||||||
///
|
///
|
||||||
/// async fn ws(req: HttpRequest, body: web::Payload) -> Result<HttpResponse, Error> {
|
/// async fn ws(req: HttpRequest, body: web::Payload) -> Result<HttpResponse, Error> {
|
||||||
/// let (response, mut session, mut msg_stream) = actix_ws::handle(&req, body)?;
|
/// let (response, mut session, mut msg_stream) = actix_ws::handle(&req, body)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user