Skip to content

Commit a358a4a

Browse files
committed
fix: use char array instead of closure for split_once
Fix clippy::manual_pattern_char_comparison warning
1 parent 9e273d0 commit a358a4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dstack-types/src/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Version {
4444
// Strip prerelease (-...) and build metadata (+...) suffixes
4545
// Find the first occurrence of '-' or '+'
4646
let version = version
47-
.split_once(|c| c == '-' || c == '+')
47+
.split_once(['-', '+'])
4848
.map(|(v, _)| v)
4949
.unwrap_or(version);
5050

0 commit comments

Comments
 (0)