(self)
| 66 | |
| 67 | impl IntoUrl for Url { |
| 68 | fn into_url(self) -> Result<Url, ProxyError> { |
| 69 | if self.has_host() { |
| 70 | Ok(self) |
| 71 | } else { |
| 72 | Err(ProxyError::UrlBadScheme(self.to_string())) |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | fn as_str(&self) -> &str { |
| 77 | self.as_ref() |
no test coverage detected