mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-24 13:20:53 +00:00
Accept &Path when creating executable links (#14791)
## Summary I don't see a great reason for this to take an owned value. It only needs an owned value for error cases.
This commit is contained in:
parent
80708dea6e
commit
d052427c37
3 changed files with 11 additions and 11 deletions
|
|
@ -262,10 +262,10 @@ pub(crate) fn create(
|
|||
if cfg!(windows) {
|
||||
if using_minor_version_link {
|
||||
let target = scripts.join(WindowsExecutable::Python.exe(interpreter));
|
||||
create_link_to_executable(target.as_path(), executable_target.clone())
|
||||
create_link_to_executable(target.as_path(), &executable_target)
|
||||
.map_err(Error::Python)?;
|
||||
let targetw = scripts.join(WindowsExecutable::Pythonw.exe(interpreter));
|
||||
create_link_to_executable(targetw.as_path(), executable_target)
|
||||
create_link_to_executable(targetw.as_path(), &executable_target)
|
||||
.map_err(Error::Python)?;
|
||||
} else {
|
||||
// Always copy `python.exe`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue