Revert "Upgrade to Rust 1.83 (#9511)" (#9617)

This reverts commit cf20673197 (#9511) due
to failure on powerpc64le in https://github.com/astral-sh/uv/pull/9612
This commit is contained in:
Zanie Blue
2024-12-03 13:21:05 -06:00
committed by GitHub
parent 6cb3bf2b13
commit 6cc7a560f7
31 changed files with 64 additions and 71 deletions
+4 -4
View File
@@ -1165,17 +1165,17 @@ pub(crate) fn is_windows_store_shim(path: &Path) -> bool {
}
// Ex) `WindowsApps`
if components
if !components
.next()
.is_none_or(|component| component.as_os_str() != "WindowsApps")
.is_some_and(|component| component.as_os_str() == "WindowsApps")
{
return false;
}
// Ex) `Microsoft`
if components
if !components
.next()
.is_none_or(|component| component.as_os_str() != "Microsoft")
.is_some_and(|component| component.as_os_str() == "Microsoft")
{
return false;
}
+1 -1
View File
@@ -89,7 +89,7 @@ impl PythonInstallation {
python_install_mirror: Option<&str>,
pypy_install_mirror: Option<&str>,
) -> Result<Self, Error> {
let request = request.unwrap_or(&PythonRequest::Default);
let request = request.unwrap_or_else(|| &PythonRequest::Default);
// Search for the installation
match Self::find(request, environments, preference, cache) {