From d74718dc20fd4335ed3843550afd97a21471b922 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 5 Nov 2024 22:51:37 -0500 Subject: [PATCH] Use a + for the visual max local (#8844) ## Summary We don't actually want users to see this, but we should be stripping it anyway. Without this change, we show ranges in the debug logs that look like `>=1.0.0, <1.0.0`, which is more confusing than helpful. (We may want to post-process those debug ranges to remove these.) --- crates/uv-pep440/src/version.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv-pep440/src/version.rs b/crates/uv-pep440/src/version.rs index 0886af258470..b66de1a2f186 100644 --- a/crates/uv-pep440/src/version.rs +++ b/crates/uv-pep440/src/version.rs @@ -734,7 +734,7 @@ impl std::fmt::Display for Version { LocalVersionSlice::Segments(_) => { format!("+{}", self.local()) } - LocalVersionSlice::Max => String::new(), + LocalVersionSlice::Max => "+".to_string(), } }; write!(f, "{epoch}{release}{pre}{post}{dev}{local}")