diff --git a/Cargo.toml b/Cargo.toml index e327971..a188d0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,17 +10,17 @@ build = "build.rs" [dependencies] actix-rt = "1.1.1" -actix-web = { version = "2.0.0", default-features = false } +actix-web = { version = "3.0.2", default-features = false } anyhow = "1.0.32" bytes = "0.5.6" -crossbeam-channel = "0.4.3" +crossbeam-channel = "0.4.4" futures = "0.3.5" http = "0.2.1" rand = "0.7.3" [build-dependencies] -skeptic = "0.13.4" +skeptic = { git = "https://github.com/budziq/rust-skeptic.git", branch = "tempfile" } [dev-dependencies] -skeptic = "0.13.4" -ureq = { version = "1.4.0", default-features = false } +skeptic = { git = "https://github.com/budziq/rust-skeptic.git", branch = "tempfile" } +ureq = { version = "1.4.1", default-features = false } diff --git a/src/helper.rs b/src/helper.rs index 63398c9..6fa2d63 100644 --- a/src/helper.rs +++ b/src/helper.rs @@ -46,7 +46,7 @@ where /// Reads bytes from HttpResponse. pub async fn read_body(mut res: HttpResponse) -> Result where - B: MessageBody, + B: MessageBody + Unpin, { let mut body = res.take_body(); let mut bytes = BytesMut::new();