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:
@@ -740,7 +740,9 @@ enum InterpreterInfoResult {
|
||||
pub enum InterpreterInfoError {
|
||||
#[error("Could not detect a glibc or a musl libc (while running on Linux)")]
|
||||
LibcNotFound,
|
||||
#[error("Broken Python installation, `platform.mac_ver()` returned an empty value, please reinstall Python")]
|
||||
#[error(
|
||||
"Broken Python installation, `platform.mac_ver()` returned an empty value, please reinstall Python"
|
||||
)]
|
||||
BrokenMacVer,
|
||||
#[error("Unknown operating system: `{operating_system}`")]
|
||||
UnknownOperatingSystem { operating_system: String },
|
||||
@@ -748,7 +750,9 @@ pub enum InterpreterInfoError {
|
||||
UnsupportedPythonVersion { python_version: String },
|
||||
#[error("Python executable does not support `-I` flag. Please use Python 3.8 or newer.")]
|
||||
UnsupportedPython,
|
||||
#[error("Python installation is missing `distutils`, which is required for packaging on older Python versions. Your system may package it separately, e.g., as `python{python_major}-distutils` or `python{python_major}.{python_minor}-distutils`.")]
|
||||
#[error(
|
||||
"Python installation is missing `distutils`, which is required for packaging on older Python versions. Your system may package it separately, e.g., as `python{python_major}-distutils` or `python{python_major}.{python_minor}-distutils`."
|
||||
)]
|
||||
MissingRequiredDistutils {
|
||||
python_major: usize,
|
||||
python_minor: usize,
|
||||
|
||||
Reference in New Issue
Block a user