Skip to content

Commit d941a73

Browse files
committed
clippy
1 parent f66b9d4 commit d941a73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generation/generate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn gen_array<'a>(node: SyntaxNode, context: &mut Context<'a>) -> PrintItemsResul
149149
let open_token = get_token_with_kind(&node, SyntaxKind::BRACKET_START)?;
150150
let close_token = get_token_with_kind(&node, SyntaxKind::BRACKET_END)?;
151151
let is_in_inline_table = node.ancestors().any(|a| a.kind() == SyntaxKind::INLINE_TABLE);
152-
let force_use_new_lines = !is_in_inline_table && has_following_newline(open_token.clone()) && node.children_with_tokens().skip(3).next().is_some();
152+
let force_use_new_lines = !is_in_inline_table && has_following_newline(open_token.clone()) && node.children_with_tokens().nth(3).is_some();
153153
ensure_all_kind(values.clone(), SyntaxKind::VALUE)?;
154154

155155
Ok(gen_surrounded_by_tokens(

0 commit comments

Comments
 (0)