Update actix-web and fix clippy lint.

This commit is contained in:
Luca Palmieri 2021-09-11 21:53:03 +02:00
parent f2765a54cc
commit ede0b7869f
3 changed files with 22 additions and 13 deletions

28
Cargo.lock generated
View file

@ -20,9 +20,9 @@ dependencies = [
[[package]]
name = "actix-http"
version = "3.0.0-beta.9"
version = "3.0.0-beta.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "01260589f1aafad11224002741eb37bc603b4ce55b4e3556d2b2122f9aac7c51"
checksum = "dd38a862fa7fead2b47ee55e550982aba583ebc7365ccf0155b49934ad6f16f9"
dependencies = [
"actix-codec",
"actix-rt",
@ -74,11 +74,12 @@ dependencies = [
[[package]]
name = "actix-router"
version = "0.2.7"
version = "0.5.0-beta.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2ad299af73649e1fc893e333ccf86f377751eb95ff875d095131574c6f43452c"
checksum = "36b95ce0d76d1aa2f98b681702807475ade0f99bd4552546a6843a966d42ea3d"
dependencies = [
"bytestring",
"firestorm",
"http",
"log",
"regex",
@ -153,9 +154,9 @@ dependencies = [
[[package]]
name = "actix-web"
version = "4.0.0-beta.8"
version = "4.0.0-beta.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c503f726f895e55dac39adeafd14b5ee00cc956796314e9227fc7ae2e176f443"
checksum = "d34aa2b23ec9c7c9a799b3cf9258f67c91b18ac3f0f5f484e175c7ac46739bb5"
dependencies = [
"actix-codec",
"actix-http",
@ -194,10 +195,11 @@ dependencies = [
[[package]]
name = "actix-web-codegen"
version = "0.5.0-beta.3"
version = "0.5.0-beta.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d048c6986743105c1e8e9729fbc8d5d1667f2f62393a58be8d85a7d9a5a6c8d"
checksum = "4a11fd6f322120a74b23327e778ef0a4950b1f44a2b76468a69316a150f5c6dd"
dependencies = [
"actix-router",
"proc-macro2",
"quote",
"syn",
@ -585,6 +587,12 @@ dependencies = [
"rand 0.7.3",
]
[[package]]
name = "firestorm"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "31586bda1b136406162e381a3185a506cdfc1631708dd40cba2f6628d8634499"
[[package]]
name = "flate2"
version = "1.0.21"
@ -2229,9 +2237,9 @@ dependencies = [
[[package]]
name = "tracing-actix-web"
version = "0.4.0-beta.11"
version = "0.4.0-beta.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0e529f2e4537b0f71c6bb734489680f780fcb97b7419b5500565714a641a250"
checksum = "aef43d92080b0429626deba48d01dad848ad515777b373d7a18eac3f129be359"
dependencies = [
"actix-web",
"futures",

View file

@ -13,8 +13,8 @@ path = "src/main.rs"
name = "zero2prod"
[dependencies]
actix-web = "=4.0.0-beta.8"
actix-http = "=3.0.0-beta.9"
actix-web = "=4.0.0-beta.9"
actix-http = "=3.0.0-beta.10"
serde = "1.0.115"
config = { version = "0.10.1", default-features = false, features = ["yaml"] }
sqlx = { version = "0.5.5", default-features = false, features = [ "runtime-actix-rustls", "macros", "postgres", "uuid", "chrono", "migrate", "offline"] }
@ -28,7 +28,7 @@ tracing-log = "0.1.1"
serde-aux = "1.0.1"
unicode-segmentation = "1.7.1"
validator = "0.12.0"
tracing-actix-web = "0.4.0-beta.8"
tracing-actix-web = "0.4.0-beta.12"
[dev-dependencies]
reqwest = { version = "0.11", features = ["json"] }

View file

@ -21,6 +21,7 @@ impl TryFrom<FormData> for NewSubscriber {
}
}
#[allow(clippy::async_yields_async)]
#[tracing::instrument(
name = "Adding a new subscriber",
skip(form, pool),