Skip to content

Commit

Permalink
update rocket
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Nov 3, 2023
1 parent a1e7a0d commit d25c9a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- macos-latest
- windows-latest
toolchain:
- 1.67
- 1.69
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- macos-latest
- windows-latest
toolchain:
- 1.67
- 1.69
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "rocket-accept-language"
version = "0.8.3"
version = "0.8.4"
authors = ["Magic Len <len@magiclen.org>"]
edition = "2021"
rust-version = "1.67"
rust-version = "1.69"
repository = "https://github.com/magiclen/rocket-accept-language"
homepage = "https://magiclen.org/rocket-accept-language"
keywords = ["rocket", "server", "web", "i18n", "http"]
Expand All @@ -13,7 +13,7 @@ license = "MIT"
include = ["src/**/*", "Cargo.toml", "README.md", "LICENSE"]

[dependencies]
rocket = "0.5.0-rc.3"
rocket = "0.5.0-rc.4"
accept-language = "3"
unic-langid = { version = "0.9", features = ["macros"] }
unic-langid-macros = "0.9"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn from_request(request: &Request<'_>) -> AcceptLanguage {
.filter_map(|al| parse_language_identifier(al.as_bytes()).ok())
.collect()
})
.unwrap_or_else(Vec::new);
.unwrap_or_default();

AcceptLanguage {
accept_language,
Expand Down

0 comments on commit d25c9a0

Please sign in to comment.