1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 16:55:08 +02:00

add trust-dns optional feature for actix-http and awc (#1969)

This commit is contained in:
fakeshadow
2021-02-09 02:41:20 -08:00
committed by GitHub
parent dddb623a11
commit 519d7f2b8a
8 changed files with 98 additions and 15 deletions

View File

@ -1277,8 +1277,10 @@ mod tests {
async fn actor_handler(
addr: Data<Addr<MyActor>>,
) -> Result<impl Responder, Error> {
// `?` operator tests "actors" feature flag on actix-http
let res = addr.send(Num(1)).await?;
let res = addr
.send(Num(1))
.await
.map_err(crate::error::ErrorInternalServerError)?;
if res == 1 {
Ok(HttpResponse::Ok())