From d2f86690029fd52d9efaa7ef2de16360756453cf Mon Sep 17 00:00:00 2001 From: "Aode (Lion)" Date: Sat, 26 Feb 2022 11:49:35 -0600 Subject: [PATCH] Update client example --- http-signature-normalization-actix/examples/client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http-signature-normalization-actix/examples/client.rs b/http-signature-normalization-actix/examples/client.rs index bb6d101..ba887a2 100644 --- a/http-signature-normalization-actix/examples/client.rs +++ b/http-signature-normalization-actix/examples/client.rs @@ -1,4 +1,4 @@ -use actix_web::error::BlockingError; +use actix_rt::task::JoinError; use awc::Client; use http_signature_normalization_actix::prelude::*; use sha2::{Digest, Sha256}; @@ -72,8 +72,8 @@ pub enum MyError { Canceled, } -impl From for MyError { - fn from(_: BlockingError) -> Self { +impl From for MyError { + fn from(_: JoinError) -> Self { MyError::Canceled } }