diff --git a/vhdl_lang/src/data/contents.rs b/vhdl_lang/src/data/contents.rs index eac440ed..767f0359 100644 --- a/vhdl_lang/src/data/contents.rs +++ b/vhdl_lang/src/data/contents.rs @@ -119,7 +119,7 @@ impl Contents { self.lines .splice( start_line..=end_line, - split_lines(&merged_content).into_iter(), + split_lines(&merged_content), ) .count(); } diff --git a/vhdl_lang/src/syntax/context.rs b/vhdl_lang/src/syntax/context.rs index 69725e83..c4d1075e 100644 --- a/vhdl_lang/src/syntax/context.rs +++ b/vhdl_lang/src/syntax/context.rs @@ -216,8 +216,7 @@ mod tests { #[test] fn test_context_clause() { - let variants = vec![ - &"\ + let variants = [&"\ context ident is end; ", @@ -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);