(path: &str)
| 266 | } |
| 267 | |
| 268 | fn github(path: &str) -> Result<Self> { |
| 269 | Ok(Self(Url::parse(&format!( |
| 270 | "https://raw.githubusercontent.com/{path}" |
| 271 | ))?)) |
| 272 | } |
| 273 | |
| 274 | fn fetch_json(self) -> Result<serde_json::Value> { |
| 275 | let value = match reqwest::blocking::get(self.0)?.json::<serde_json::Value>()? { |
no test coverage detected