mirror of
https://github.com/astral-sh/uv.git
synced 2025-09-02 08:47:23 +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
|
@ -106,8 +106,15 @@ impl fmt::Display for EnvironmentNotFound {
|
|||
match search_type {
|
||||
// This error message assumes that the relevant API accepts the `--system` flag. This
|
||||
// is true of the callsites today, since the project APIs never surface this error.
|
||||
SearchType::Virtual => write!(f, "; run `{}` to create an environment, or pass `{}` to install into a non-virtual environment", "uv venv".green(), "--system".green())?,
|
||||
SearchType::VirtualOrSystem => write!(f, "; run `{}` to create an environment", "uv venv".green())?,
|
||||
SearchType::Virtual => write!(
|
||||
f,
|
||||
"; run `{}` to create an environment, or pass `{}` to install into a non-virtual environment",
|
||||
"uv venv".green(),
|
||||
"--system".green()
|
||||
)?,
|
||||
SearchType::VirtualOrSystem => {
|
||||
write!(f, "; run `{}` to create an environment", "uv venv".green())?;
|
||||
}
|
||||
SearchType::System => {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue