(s: &str)
| 361 | /// - `ada-url` crate: `Url::parse(s, None)` returns `Result<Url, ParseUrlError>` |
| 362 | #[inline] |
| 363 | pub fn url_parse(s: &str) -> Result<Url> { |
| 364 | #[cfg(feature = "url-ada")] |
| 365 | { |
| 366 | Url::parse(s, None).map_err(|e| -> BoxError { e.to_string().into() }) |
| 367 | } |
| 368 | #[cfg(not(feature = "url-ada"))] |
| 369 | { |
| 370 | Url::parse(s).map_err(|e| -> BoxError { Box::new(e) }) |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | /// Set the path component of a URL. |
| 375 | /// |
no outgoing calls