From 8b37ca69a5267aac9c4bd550a61d2bd32195fe78 Mon Sep 17 00:00:00 2001 From: Collins Muriuki Date: Thu, 21 Mar 2024 20:01:48 +0300 Subject: [PATCH] fix clippy errors in entry_type module --- src/scaffold/entry_type/utils.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scaffold/entry_type/utils.rs b/src/scaffold/entry_type/utils.rs index 6d3f7709e..7d2d566f3 100644 --- a/src/scaffold/entry_type/utils.rs +++ b/src/scaffold/entry_type/utils.rs @@ -50,7 +50,7 @@ fn inner_choose_referenceable( optional: bool, ) -> ScaffoldResult> { let mut all_options: Vec = all_entries - .into_iter() + .iter() .map(|r| r.entry_type.to_owned()) .collect(); @@ -86,7 +86,7 @@ fn inner_choose_referenceable( } pub fn choose_referenceable( - all_entries: &Vec, + all_entries: &[EntryTypeReference], prompt: &str, ) -> ScaffoldResult { let maybe_reference_type = inner_choose_referenceable(all_entries, prompt, false)?; @@ -95,7 +95,7 @@ pub fn choose_referenceable( } pub fn choose_optional_referenceable( - all_entries: &Vec, + all_entries: &[EntryTypeReference], prompt: &str, ) -> ScaffoldResult> { inner_choose_referenceable(all_entries, prompt, true)