Skip to content

Commit

Permalink
Simplify warp doctest in order to pass with latest v0.3.6
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Crossley <jim@crossleys.org>
  • Loading branch information
jcrossley3 committed Oct 18, 2023
1 parent 109d02d commit 933edbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ actix-web = { version = "4", optional = true }
actix-http = { version = "3", optional = true }
reqwest-lib = { version = "^0.11", default-features = false, features = ["rustls-tls"], optional = true, package = "reqwest" }
rdkafka-lib = { version = "^0.29", features = ["cmake-build"], optional = true, package = "rdkafka" }
warp-lib = { version = "=0.3.5", optional = true, package = "warp" }
warp-lib = { version = "^0.3", optional = true, package = "warp" }
async-trait = { version = "^0.1.33", optional = true }
bytes = { version = "^1.0", optional = true }
futures = { version = "^0.3", optional = true }
Expand Down
7 changes: 3 additions & 4 deletions src/binding/warp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@
//! .build();
//!
//! match event {
//! Ok(event) => Ok(from_event(event)),
//! Err(e) => Ok(warp::reply::with_status(
//! Ok(event) => from_event(event),
//! Err(e) => warp::reply::with_status(
//! e.to_string(),
//! StatusCode::INTERNAL_SERVER_ERROR,
//! )
//! .into_response()),
//! ).into_response(),
//! }
//! });
//!
Expand Down

0 comments on commit 933edbc

Please sign in to comment.