Skip to content

Commit 933edbc

Browse files
committed
Simplify warp doctest in order to pass with latest v0.3.6
Signed-off-by: Jim Crossley <[email protected]>
1 parent 109d02d commit 933edbc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ actix-web = { version = "4", optional = true }
4747
actix-http = { version = "3", optional = true }
4848
reqwest-lib = { version = "^0.11", default-features = false, features = ["rustls-tls"], optional = true, package = "reqwest" }
4949
rdkafka-lib = { version = "^0.29", features = ["cmake-build"], optional = true, package = "rdkafka" }
50-
warp-lib = { version = "=0.3.5", optional = true, package = "warp" }
50+
warp-lib = { version = "^0.3", optional = true, package = "warp" }
5151
async-trait = { version = "^0.1.33", optional = true }
5252
bytes = { version = "^1.0", optional = true }
5353
futures = { version = "^0.3", optional = true }

src/binding/warp/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@
4949
//! .build();
5050
//!
5151
//! match event {
52-
//! Ok(event) => Ok(from_event(event)),
53-
//! Err(e) => Ok(warp::reply::with_status(
52+
//! Ok(event) => from_event(event),
53+
//! Err(e) => warp::reply::with_status(
5454
//! e.to_string(),
5555
//! StatusCode::INTERNAL_SERVER_ERROR,
56-
//! )
57-
//! .into_response()),
56+
//! ).into_response(),
5857
//! }
5958
//! });
6059
//!

0 commit comments

Comments
 (0)