Skip to content

Commit a4143d8

Browse files
committed
Auto merge of rust-lang#2131 - jtgeibel:clippy/iter-nth-zero, r=jtgeibel
Fix a new lint - clippy::iter-nth-zero This lint was recently added to nightly and is a reasonable change. I plan to r+ soon, so: r? @ghost
2 parents 0b76a66 + 3a4d955 commit a4143d8

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)