(url: &str)
| 246 | } |
| 247 | |
| 248 | fn fetch(url: &str) -> Result<Vec<u8>> { |
| 249 | let mut resp = ureq::get(url).call().map_err(|e| anyhow!("HTTP error: {e}"))?; |
| 250 | resp.body_mut().read_to_vec().map_err(|e| anyhow!("reading body: {e}")) |
| 251 | } |
no test coverage detected