From c2d83622d4c238d61cec4ec201bcd8921b5256b9 Mon Sep 17 00:00:00 2001 From: Samuel Batissou Date: Thu, 21 Mar 2024 17:58:22 +0100 Subject: [PATCH] upgrade reqwest and rocket --- Cargo.toml | 4 ++-- examples/server.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5afb85b..4f68c12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ categories = ["web-programming::http-client", "no-std", "parsing", "asynchronous [dependencies] eventsource-stream = "0.2.3" -reqwest = { version = "0.11", default-features = false, features = ["stream"] } +reqwest = { version = "0.12.0", default-features = false, features = ["stream"] } futures-core = "0.3.5" pin-project-lite = "0.2.8" nom = "7.1.0" @@ -28,4 +28,4 @@ futures = "0.3.5" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } futures-retry = "0.6" pin-utils = "0.1" -rocket = "0.5.0-rc.3" +rocket = "0.5.0" diff --git a/examples/server.rs b/examples/server.rs index 2688a60..506b660 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -19,7 +19,7 @@ impl<'r> rocket::request::FromRequest<'r> for LastEventId { } else { match id.parse() { Ok(id) => Outcome::Success(LastEventId(id)), - Err(err) => Outcome::Failure((Status::BadRequest, err)), + Err(err) => Outcome::Error((Status::BadRequest, err)), } } } else {