Skip to content

Commit b6ae580

Browse files
committed
Fix new clippy issues after rustup
1 parent 5e5e740 commit b6ae580

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

vhdl_lang/src/data/contents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl Contents {
119119
self.lines
120120
.splice(
121121
start_line..=end_line,
122-
split_lines(&merged_content).into_iter(),
122+
split_lines(&merged_content),
123123
)
124124
.count();
125125
}

vhdl_lang/src/syntax/context.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,7 @@ mod tests {
216216

217217
#[test]
218218
fn test_context_clause() {
219-
let variants = vec![
220-
&"\
219+
let variants = [&"\
221220
context ident is
222221
end;
223222
",
@@ -232,8 +231,7 @@ end ident;
232231
&"\
233232
context ident is
234233
end context ident;
235-
",
236-
];
234+
"];
237235
for (idx, variant) in variants.iter().enumerate() {
238236
let has_end_ident = idx >= 2;
239237
let code = Code::new(variant);

0 commit comments

Comments
 (0)