Skip to content

Commit

Permalink
Update axum 0.7.1 to 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Dec 4, 2023
1 parent 9d7c1e4 commit e9a5668
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
[dependencies]
anyhow = "1.0.72"
async-trait = "0.1.72"
axum = "0.7.1"
axum = "0.7.2"
clap = { version = "4.4.11", features = ["derive"] }
hyper = { version = "1.0.1", features = ["full"] }
rand = "0.8.5"
Expand All @@ -25,6 +25,5 @@ tracing = "0.1.37"
tracing-subscriber = "0.3.17"

[dev-dependencies]
http-body-util = "0.1.0"
temp-env = "0.3.4"
tower = { version = "0.4.13", features = ["util"] }
2 changes: 1 addition & 1 deletion src/handler/generate_pi.rs
Expand Up @@ -115,7 +115,7 @@ mod tests {

assert_eq!(response.status(), StatusCode::OK);
let body = response.into_body();
let bytes = http_body_util::BodyExt::collect(body).await?.to_bytes();
let bytes = axum::body::to_bytes(body, usize::MAX).await?;
let body = String::from_utf8(bytes[..].to_vec())?;
assert_eq!(
body,
Expand Down

0 comments on commit e9a5668

Please sign in to comment.