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)