mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Remove URL encoding when determining file name (#1555)
## Summary Closes https://github.com/astral-sh/uv/issues/1553.
This commit is contained in:
parent
6392961f44
commit
9e0336c28a
7 changed files with 52 additions and 27 deletions
|
@ -1,5 +1,6 @@
|
|||
//! Given a set of requirements, find a set of compatible packages.
|
||||
|
||||
use std::borrow::Cow;
|
||||
use std::fmt::{Display, Formatter};
|
||||
use std::sync::Arc;
|
||||
|
||||
|
@ -729,7 +730,7 @@ impl<'a, Provider: ResolverProvider> Resolver<'a, Provider> {
|
|||
dist.for_resolution()
|
||||
.dist
|
||||
.filename()
|
||||
.unwrap_or("unknown filename")
|
||||
.unwrap_or(Cow::Borrowed("unknown filename"))
|
||||
);
|
||||
} else {
|
||||
debug!(
|
||||
|
@ -739,7 +740,7 @@ impl<'a, Provider: ResolverProvider> Resolver<'a, Provider> {
|
|||
dist.for_resolution()
|
||||
.dist
|
||||
.filename()
|
||||
.unwrap_or("unknown filename")
|
||||
.unwrap_or(Cow::Borrowed("unknown filename"))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue