mirror of
https://github.com/SeCherkasov/util-linux-cal.git
synced 2026-03-31 00:11:47 +03:00
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:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user