Update Rust toolchain to 1.91 and MSRV to 1.89 (#16531)

## Summary

Updates Rust Toolchain to
[1.91](https://blog.rust-lang.org/2025/10/30/Rust-1.91.0/) and bumps
MSRV to [1.89](https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/) per
versioning policy. New clippy rule [implicit
clone](https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone)
resulted in some minor changes (some with improvements).

Updates trampoline to `nightly-2025-06-23` which is roughly 1.89~. The
trampoline binaries do not need to be regenerated as there should be no
changes.
This commit is contained in:
samypr100
2025-10-30 23:34:59 -04:00
committed by GitHub
parent 7cf1646a44
commit 7978122837
16 changed files with 44 additions and 49 deletions
+3 -3
View File
@@ -1135,7 +1135,7 @@ impl ManagedPythonDownload {
let mut extracted = match uv_extract::strip_component(temp_dir.path()) {
Ok(top_level) => top_level,
Err(uv_extract::Error::NonSingularArchive(_)) => temp_dir.keep(),
Err(err) => return Err(Error::ExtractError(filename.to_string(), err)),
Err(err) => return Err(Error::ExtractError(filename, err)),
};
// If the distribution is a `full` archive, the Python installation is in the `install` directory.
@@ -1266,12 +1266,12 @@ impl ManagedPythonDownload {
let mut reader = ProgressReader::new(&mut hasher, progress_key, reporter);
uv_extract::stream::archive(&mut reader, ext, target)
.await
.map_err(|err| Error::ExtractError(filename.to_string(), err))?;
.map_err(|err| Error::ExtractError(filename.to_owned(), err))?;
reporter.on_request_complete(direction, progress_key);
} else {
uv_extract::stream::archive(&mut hasher, ext, target)
.await
.map_err(|err| Error::ExtractError(filename.to_string(), err))?;
.map_err(|err| Error::ExtractError(filename.to_owned(), err))?;
}
hasher.finish().await.map_err(Error::HashExhaustion)?;