Use a + for the visual max local (#8844)

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.)
This commit is contained in:
Charlie Marsh 2024-11-05 22:51:37 -05:00 committed by Zanie Blue
parent 70f8377928
commit a80b6f51b0

View file

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