Skip to content

Commit ba798f3

Browse files
committed
Fix latest breaking change from poem
Pin to latest version to prevent this in the future Signed-off-by: Jim Crossley <[email protected]>
1 parent 6d8e78b commit ba798f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ http = { version = "0.2", optional = true }
4747
hyper = { version = "^0.14", optional = true }
4848
axum-lib = { version = "^0.2", optional = true, package = "axum" }
4949
http-body = { version = "^0.4", optional = true }
50-
poem-lib = { version = "1", optional = true, package = "poem" }
50+
poem-lib = { version = "=1.2.34", optional = true, package = "poem" }
5151

5252
[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
5353
hostname = "^0.3"

src/binding/poem/extractor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ mod tests {
5757

5858
let (req, mut body) = req.split();
5959
let resp = Event::from_request(&req, &mut body).await.err().unwrap();
60-
assert_eq!(resp.status(), StatusCode::BAD_REQUEST);
60+
assert_eq!(resp.as_response().status(), StatusCode::BAD_REQUEST);
6161
assert_eq!(resp.to_string(), "Invalid specversion BAD SPECIFICATION");
6262
}
6363

0 commit comments

Comments
 (0)