Update dependencies to latest versions

- unicode-width: 0.1.14 → 0.2.2
- libloading: 0.8.9 → 0.9.0
- ureq: 2.12.1 → 3.2.0 (plugin)

Updated ureq API usage: response.into_string() →
response.into_body().read_to_string()
This commit is contained in:
2026-02-19 09:45:20 +03:00
parent 0bea3004b4
commit 2ff92f6a52
4 changed files with 53 additions and 286 deletions

View File

@@ -10,5 +10,5 @@ name = "holiday_highlighter"
[dependencies]
chrono = { version = "0.4.43", features = ["unstable-locales"] }
ureq = "2.12"
ureq = "3.2"
libc = "0.2"

View File

@@ -161,7 +161,7 @@ fn fetch_holidays(year: i32, month: u32, _country: &str) -> Option<String> {
let url = format!("{}?year={}&month={:02}&pre=1", API_URL_MONTH, year, month);
match ureq::get(&url).call() {
Ok(response) => response.into_string().ok(),
Ok(response) => response.into_body().read_to_string().ok(),
Err(_) => None,
}
}
@@ -171,7 +171,7 @@ pub fn fetch_holidays_year(year: i32, _country: &str) -> Option<String> {
let url = format!("{}?year={}&pre=1", API_URL_YEAR, year);
match ureq::get(&url).call() {
Ok(response) => response.into_string().ok(),
Ok(response) => response.into_body().read_to_string().ok(),
Err(_) => None,
}
}