From 29b5f5fc6316820827818bbc529dd3fe848510bc Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sat, 25 Feb 2023 20:51:36 +0100 Subject: [PATCH] Thanks clippy :) --- bacon.toml | 2 +- src/forms.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bacon.toml b/bacon.toml index 5c11947..2c9ef7e 100644 --- a/bacon.toml +++ b/bacon.toml @@ -1,6 +1,6 @@ default_job = "clippy" [jobs.clippy] -command = ["cargo", "clippy", "-q", "--all-targets", "--color", "always", "--workspace"] +command = ["cargo", "clippy", "--all-targets", "--color", "always", "--workspace"] need_stdout = false watch = ["tests", "benches", "examples", "crates", "templates"] diff --git a/src/forms.rs b/src/forms.rs index b2869de..e58cb85 100644 --- a/src/forms.rs +++ b/src/forms.rs @@ -14,7 +14,7 @@ pub struct PersistantFieldContents { } impl PersistantFieldContents { - pub fn new_empty(custom_fields: &Vec) -> Self { + pub fn new_empty(custom_fields: &[CustomField]) -> Self { Self { name: String::default(), email: String::default(),