mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-06 04:00:02 +00:00
Optimize GhCrateMeta::check
: Avoid converting url to str
Only to convert it back to `Url` in `helpers::remote_exists` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
0c83d010b1
commit
b2a533dbdb
3 changed files with 3 additions and 4 deletions
|
@ -36,7 +36,7 @@ impl super::Fetcher for GhCrateMeta {
|
|||
}
|
||||
|
||||
info!("Checking for package at: '{url}'");
|
||||
remote_exists(url.as_str(), Method::HEAD).await
|
||||
remote_exists(url, Method::HEAD).await
|
||||
}
|
||||
|
||||
async fn fetch(&self, dst: &Path) -> Result<(), BinstallError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue