Skip to content

Commit 077700f

Browse files
dcormierMichael Lazear
authored andcommitted
Updated lambda_http dependency
1 parent 3b1ae98 commit 077700f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ keywords = ["axum", "lambda", "tower", "aws"]
1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

1515
[dependencies]
16-
lambda_http = "0.14"
16+
lambda_http = "1"
1717
axum = "0.8"
1818
hyper = "1.0"
1919
bytes = "1.5"

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ where
6060
lambda_http::Body::Empty => axum::body::Body::default(),
6161
lambda_http::Body::Text(t) => t.into(),
6262
lambda_http::Body::Binary(v) => v.into(),
63+
// lambda_http::Body is non-exhaustive, so a catch-all is needed
64+
_ => unimplemented!("unsupported body type"),
6365
};
6466

6567
if self.layer.trim_stage {

0 commit comments

Comments
 (0)