Skip to content

Commit

Permalink
fix clippy errors in entry_type module
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed Mar 21, 2024
1 parent ff6719a commit 8b37ca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scaffold/entry_type/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn inner_choose_referenceable(
optional: bool,
) -> ScaffoldResult<Option<Referenceable>> {
let mut all_options: Vec<String> = all_entries
.into_iter()
.iter()
.map(|r| r.entry_type.to_owned())
.collect();

Expand Down Expand Up @@ -86,7 +86,7 @@ fn inner_choose_referenceable(
}

pub fn choose_referenceable(
all_entries: &Vec<EntryTypeReference>,
all_entries: &[EntryTypeReference],
prompt: &str,
) -> ScaffoldResult<Referenceable> {
let maybe_reference_type = inner_choose_referenceable(all_entries, prompt, false)?;
Expand All @@ -95,7 +95,7 @@ pub fn choose_referenceable(
}

pub fn choose_optional_referenceable(
all_entries: &Vec<EntryTypeReference>,
all_entries: &[EntryTypeReference],
prompt: &str,
) -> ScaffoldResult<Option<Referenceable>> {
inner_choose_referenceable(all_entries, prompt, true)
Expand Down

0 comments on commit 8b37ca6

Please sign in to comment.