mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-16 01:35:00 +00:00
![]() <!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary Follow up for https://github.com/astral-sh/uv/pull/11738 I missed this while reviewing the truncation changes. `format!("{:.N}", value)` only truncates if the `fmt::Display` implementation supports it (by reading `f.precision()` in trait implementation). So in our case `format!("{:.N}", version.to_string())` will work but not `format!("{:.N}", version)` unless `Version` supports it. Since we only need it once, I am just truncating after the string is created. ## Test Plan <!-- How was it tested? --> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |