From 6adff613df8c18f3a779e481fe6518e2d090f1de Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Thu, 28 Dec 2023 13:11:08 +0100 Subject: [PATCH] fix for rocket v0.5.0 --- Cargo.toml | 2 +- src/with_rocket.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 302f8d9..2fae346 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" gettext = "0.4" [dependencies.rocket] -version = "0.5.0-rc.1" +version = "0.5.0" optional = true [dependencies.actix-web] diff --git a/src/with_rocket.rs b/src/with_rocket.rs index d6784cd..4b181bc 100644 --- a/src/with_rocket.rs +++ b/src/with_rocket.rs @@ -34,7 +34,7 @@ impl<'r> FromRequest<'r> for I18n { catalog: translation.1.clone(), lang: translation.0, }), - None => Outcome::Failure((Status::InternalServerError, ())), + None => Outcome::Error((Status::InternalServerError, ())), } } }