Skip to content

Commit

Permalink
Fix new clippy issues after rustup
Browse files Browse the repository at this point in the history
  • Loading branch information
kraigher committed Sep 8, 2023
1 parent 5e5e740 commit b6ae580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vhdl_lang/src/data/contents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl Contents {
self.lines
.splice(
start_line..=end_line,
split_lines(&merged_content).into_iter(),
split_lines(&merged_content),
)
.count();
}
Expand Down
6 changes: 2 additions & 4 deletions vhdl_lang/src/syntax/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ mod tests {

#[test]
fn test_context_clause() {
let variants = vec![
&"\
let variants = [&"\
context ident is
end;
",
Expand All @@ -232,8 +231,7 @@ end ident;
&"\
context ident is
end context ident;
",
];
"];
for (idx, variant) in variants.iter().enumerate() {
let has_end_ident = idx >= 2;
let code = Code::new(variant);
Expand Down

0 comments on commit b6ae580

Please sign in to comment.