Skip to content

Commit 4d3b2d5

Browse files
committed
refactor(lint): apply clippy suggestions
1 parent 3dab0d1 commit 4d3b2d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-cliff-core/src/release.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl Release<'_> {
114114
let mut prefix = None;
115115
if semver.is_err() && version.split('.').count() >= 2 {
116116
let mut found_numeric = false;
117-
for (i, c) in version.chars().enumerate() {
117+
for (i, c) in version.char_indices() {
118118
if c.is_numeric() && !found_numeric {
119119
found_numeric = true;
120120
let version_prefix = version[..i].to_string();

0 commit comments

Comments
 (0)