mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
fix: resolve type mismatch in sdist URL and filename mapping
- Use closure instead of direct function reference for Cow<str> types - Fix compilation error with std::string::ToString::to_string - Ensure proper type conversion for URL and filename extraction 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
93ecb1bcd7
commit
f0a5b64b33
1 changed files with 2 additions and 2 deletions
|
@ -176,10 +176,10 @@ impl PexLock {
|
|||
|
||||
// Add source distributions
|
||||
if let Some(sdist) = &package.sdist {
|
||||
let Some(sdist_url) = sdist.url().map(std::string::ToString::to_string) else {
|
||||
let Some(sdist_url) = sdist.url().map(|u| u.to_string()) else {
|
||||
continue;
|
||||
};
|
||||
let Some(sdist_filename) = sdist.filename().map(std::string::ToString::to_string) else {
|
||||
let Some(sdist_filename) = sdist.filename().map(|f| f.to_string()) else {
|
||||
continue;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue