fix: update dependencies and enhance configuration for proxy handling
This commit is contained in:
@@ -16,14 +16,6 @@ pub async fn is_docker() -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_http_url(value: &str) -> bool {
|
||||
url::Url::parse(value).is_ok_and(|parsed_url| {
|
||||
let scheme = parsed_url.scheme();
|
||||
(scheme == "http" || scheme == "https")
|
||||
&& parsed_url.host_str().is_some()
|
||||
})
|
||||
}
|
||||
|
||||
pub fn pretty_error(e: &color_eyre::Report) -> String {
|
||||
e.chain().map(ToString::to_string).collect::<Vec<_>>().join(" \u{2192} ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user