mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Dedicated error type for direct url parsing (#3181)
Add a dedicated error type for direct url parsing. This change is broken out from the new uv requirement type, which uses direct url parsing internally.
This commit is contained in:
parent
0e54cfb019
commit
f29c991e21
7 changed files with 38 additions and 17 deletions
|
@ -51,7 +51,7 @@ impl GitUrl {
|
|||
}
|
||||
|
||||
impl TryFrom<Url> for GitUrl {
|
||||
type Error = anyhow::Error;
|
||||
type Error = git2::Error;
|
||||
|
||||
/// Initialize a [`GitUrl`] source from a URL.
|
||||
fn try_from(mut url: Url) -> Result<Self, Self::Error> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue