Bump once_cell from 1.19.0 to 1.20.0 in the minor group (#173)
* Bump once_cell from 1.19.0 to 1.20.0 in the minor group Bumps the minor group with 1 update: [once_cell](https://github.com/matklad/once_cell). Updates `once_cell` from 1.19.0 to 1.20.0 - [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md) - [Commits](https://github.com/matklad/once_cell/compare/v1.19.0...v1.20.0) --- updated-dependencies: - dependency-name: once_cell dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fixing lint error. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Cottner <acottner@mozilla.com>
This commit is contained in:
Родитель
00019dc433
Коммит
eaacb7e3c5
|
@ -1227,9 +1227,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "once_cell"
|
||||
version = "1.19.0"
|
||||
version = "1.20.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
||||
checksum = "33ea5043e58958ee56f3e15a90aee535795cd7dfd319846288d93c5b57d85cbe"
|
||||
|
||||
[[package]]
|
||||
name = "openssl"
|
||||
|
|
|
@ -29,7 +29,7 @@ slog-json = "2.6.1"
|
|||
slog-mozlog-json = "0.1.0"
|
||||
slog-term = "2.9.1"
|
||||
slog_derive = "0.2"
|
||||
once_cell = "1.19.0"
|
||||
once_cell = "1.20.0"
|
||||
|
||||
[dependencies.chrono]
|
||||
features = ["serde"]
|
||||
|
|
|
@ -100,10 +100,7 @@ pub async fn get_country(
|
|||
|
||||
let country = country_opt.unwrap();
|
||||
response.json(CountryResponse {
|
||||
country_code: match country.iso_code {
|
||||
Some(x) => x,
|
||||
None => "",
|
||||
},
|
||||
country_code: country.iso_code.unwrap_or_default(),
|
||||
country_name: match country.names {
|
||||
Some(x) => x["en"],
|
||||
None => "",
|
||||
|
|
Загрузка…
Ссылка в новой задаче