Bump MSRV to 1.84 (#12670)

## Summary

Closes https://github.com/astral-sh/uv/issues/12649.
This commit is contained in:
Charlie Marsh 2025-04-04 11:49:26 -04:00 committed by GitHub
parent 420fc287fa
commit 42dcea0ee2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
64 changed files with 162 additions and 144 deletions

View file

@ -1,6 +1,7 @@
use std::collections::{BTreeMap, Bound};
use std::ffi::OsStr;
use std::fmt::Display;
use std::fmt::Write;
use std::path::{Path, PathBuf};
use std::str::FromStr;
@ -603,7 +604,7 @@ impl PyProjectToml {
return Err(ValidationError::InvalidGroup(group.to_string()));
}
writer.push_str(&format!("[{group}]\n"));
let _ = writeln!(writer, "[{group}]");
for (name, object_reference) in entries {
// More strict than the spec, we enforce the recommendation
if !name
@ -614,7 +615,7 @@ impl PyProjectToml {
}
// TODO(konsti): Validate that the object references are valid Python identifiers.
writer.push_str(&format!("{name} = {object_reference}\n"));
let _ = writeln!(writer, "{name} = {object_reference}");
}
writer.push('\n');
Ok(())
@ -963,7 +964,7 @@ mod tests {
fn format_err(err: impl std::error::Error) -> String {
let mut formatted = err.to_string();
for source in iter::successors(err.source(), |&err| err.source()) {
formatted += &format!("\n Caused by: {source}");
let _ = write!(formatted, "\n Caused by: {source}");
}
formatted
}

View file

@ -231,7 +231,7 @@ fn write_source_dist(
if !include_matcher.match_path(relative) || exclude_matcher.is_match(relative) {
trace!("Excluding: `{}`", relative.user_display());
continue;
};
}
debug!("Including {}", relative.user_display());
if entry.file_type().is_dir() {

View file

@ -560,7 +560,7 @@ fn wheel_subdir_from_globs(
if !matcher.match_path(relative) {
trace!("Excluding {}: `{}`", globs_field, relative.user_display());
continue;
};
}
let relative_licenses = Path::new(target)
.join(relative)