Thanks clippy :)

This commit is contained in:
Mo 2023-02-25 20:51:36 +01:00
parent 1ac042ebee
commit 29b5f5fc63
2 changed files with 2 additions and 2 deletions

View file

@ -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"]

View file

@ -14,7 +14,7 @@ pub struct PersistantFieldContents {
}
impl PersistantFieldContents {
pub fn new_empty(custom_fields: &Vec<CustomField>) -> Self {
pub fn new_empty(custom_fields: &[CustomField]) -> Self {
Self {
name: String::default(),
email: String::default(),