Skip to content

Commit 6271e6e

Browse files
author
Chris Connelly
authored
Merge pull request #9 from wasdacraic/upgrade-axum
Upgrade axum
2 parents 9d02291 + 691b541 commit 6271e6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "axum-sqlx-tx"
33
description = "Request-scoped SQLx transactions for axum"
4-
version = "0.2.0"
4+
version = "0.3.0"
55
license = "MIT"
66
repository = "https://github.com/wasdacraic/axum-sqlx-tx/"
77
edition = "2021"
@@ -27,7 +27,7 @@ runtime-tokio-rustls = ["sqlx/runtime-tokio-rustls"]
2727
features = ["all-databases", "runtime-tokio-rustls"]
2828

2929
[dependencies]
30-
axum-core = "0.1.2"
30+
axum-core = "0.2.1"
3131
bytes = "1.1.0"
3232
futures-core = "0.3.21"
3333
http = "0.2.6"
@@ -40,7 +40,7 @@ tower-service = "0.3.1"
4040

4141
[dev-dependencies]
4242
axum-sqlx-tx = { path = ".", features = ["runtime-tokio-rustls", "sqlite"] }
43-
axum = "0.4.5"
43+
axum = "0.5.1"
4444
hyper = "0.14.17"
4545
tempfile = "3.3.0"
4646
tokio = { version = "1.17.0", features = ["macros"] }

src/tx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ where
131131
Box::pin(async move {
132132
let ext: &mut Lazy<DB> = req
133133
.extensions_mut()
134-
.and_then(|ext| ext.get_mut())
134+
.get_mut()
135135
.ok_or(Error::MissingExtension)?;
136136

137137
let tx = ext.get_or_begin().await?;

0 commit comments

Comments
 (0)