mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 10:33:49 +00:00
Apply first set of Rustfmt edition 2024 changes (#13478)
Rustfmt introduces a lot of formatting changes in the 2024 edition. To not break everything all at once, we split out the set of formatting changes compatible with both the 2021 and 2024 edition by first formatting with the 2024 style, and then again with the currently used 2021 style. Notable changes are the formatting of derive macro attributes and lines with overly long strings and adding trailing semicolons after statements consistently.
This commit is contained in:
parent
b31d08c683
commit
5d37c7ecc5
77 changed files with 660 additions and 313 deletions
|
@ -16,7 +16,9 @@ use uv_fs::Simplified;
|
|||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum LibcDetectionError {
|
||||
#[error("Could not detect either glibc version nor musl libc version, at least one of which is required")]
|
||||
#[error(
|
||||
"Could not detect either glibc version nor musl libc version, at least one of which is required"
|
||||
)]
|
||||
NoLibcFound,
|
||||
#[error("Failed to get base name of symbolic link path {0}")]
|
||||
MissingBasePath(PathBuf),
|
||||
|
@ -66,7 +68,9 @@ pub(crate) fn detect_linux_libc() -> Result<LibcVersion, LibcDetectionError> {
|
|||
match detect_linux_libc_from_ld_symlink(&ld_path) {
|
||||
Ok(os) => return Ok(os),
|
||||
Err(err) => {
|
||||
trace!("Tried to find libc version from possible symlink at {ld_path:?}, but failed: {err}");
|
||||
trace!(
|
||||
"Tried to find libc version from possible symlink at {ld_path:?}, but failed: {err}"
|
||||
);
|
||||
}
|
||||
}
|
||||
match detect_glibc_version_from_ldd(&ld_path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue