Skip to content

Commit

Permalink
Use a + for the visual max local (#8844)
Browse files Browse the repository at this point in the history
## 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.)
  • Loading branch information
charliermarsh authored Nov 6, 2024
1 parent 8f109f4 commit d74718d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/uv-pep440/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit d74718d

Please sign in to comment.