We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e273d0 commit 0f08864Copy full SHA for 0f08864
1 file changed
dstack-types/src/version.rs
@@ -44,7 +44,7 @@ impl Version {
44
// Strip prerelease (-...) and build metadata (+...) suffixes
45
// Find the first occurrence of '-' or '+'
46
let version = version
47
- .split_once(|c| c == '-' || c == '+')
+ .split_once(['-', '+'])
48
.map(|(v, _)| v)
49
.unwrap_or(version);
50
0 commit comments