From b6ae580d579739d71c2217a92c55f551813408ed Mon Sep 17 00:00:00 2001 From: Olof Kraigher Date: Fri, 8 Sep 2023 17:22:22 +0200 Subject: [PATCH] Fix new clippy issues after rustup --- vhdl_lang/src/data/contents.rs | 2 +- vhdl_lang/src/syntax/context.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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);