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}")