Skip to content

Commit 3a4d955

Browse files
committed
Fix a new lint - clippy::iter-nth-zero
1 parent 0b76a66 commit 3a4d955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/krate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ impl Crate {
252252
Self::valid_feature_name(name)
253253
&& name
254254
.chars()
255-
.nth(0)
255+
.next()
256256
.map(char::is_alphabetic)
257257
.unwrap_or(false)
258258
}

0 commit comments

Comments
 (0)