Skip to content

Commit

Permalink
Merge pull request #76 from mgierada/fix_breaking_chages_rocket_rc4
Browse files Browse the repository at this point in the history
Fix breaking changes in rocket 0.5.0-rc.4
  • Loading branch information
mgierada authored Nov 9, 2023
2 parents c7be38c + ce34643 commit 5a88b7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "rust_that_light"
authors = ["Maciej Gierada @mgierada"]
version = "0.11.0"
version = "0.12.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions src/implementations/access_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ impl<'r> FromRequest<'r> for Token {
if auth_token == ACCESS_TOKEN.to_string() {
Outcome::Success(Token(auth_token.to_string()))
} else {
Outcome::Failure((
Outcome::Error((
Status::Unauthorized,
AuthError {
error: "Invalid Authorization token".to_string(),
},
))
}
} else {
Outcome::Failure((
Outcome::Error((
Status::Unauthorized,
AuthError {
error: "Missing Authorization header".to_string(),
Expand Down

0 comments on commit 5a88b7d

Please sign in to comment.