diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-07 20:35:38 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:59 +0200 |
commit | 73b3321d98e0298dba5d4ef63e8058a01cc2943c (patch) | |
tree | 0b5ef2427f8d95085c2819c8e9dba02c3c6f0c65 /sq/build.rs | |
parent | 19169b76117db8b1d81f1aafa64a5440d042803d (diff) |
Lint: Use next instead of nth(0).
- https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
Diffstat (limited to 'sq/build.rs')
-rw-r--r-- | sq/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sq/build.rs b/sq/build.rs index 5cc59cc0..49d55740 100644 --- a/sq/build.rs +++ b/sq/build.rs @@ -87,7 +87,7 @@ fn dump_help(sink: &mut dyn io::Write, if line.chars().nth(4).map(|c| ! c.is_ascii_whitespace()) .unwrap_or(false) { - line.trim_start().split(" ").nth(0) + line.trim_start().split(" ").next() } else { None } |