Thanks clippy :)
This commit is contained in:
parent
1ac042ebee
commit
29b5f5fc63
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
default_job = "clippy"
|
default_job = "clippy"
|
||||||
|
|
||||||
[jobs.clippy]
|
[jobs.clippy]
|
||||||
command = ["cargo", "clippy", "-q", "--all-targets", "--color", "always", "--workspace"]
|
command = ["cargo", "clippy", "--all-targets", "--color", "always", "--workspace"]
|
||||||
need_stdout = false
|
need_stdout = false
|
||||||
watch = ["tests", "benches", "examples", "crates", "templates"]
|
watch = ["tests", "benches", "examples", "crates", "templates"]
|
||||||
|
|
|
@ -14,7 +14,7 @@ pub struct PersistantFieldContents {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PersistantFieldContents {
|
impl PersistantFieldContents {
|
||||||
pub fn new_empty(custom_fields: &Vec<CustomField>) -> Self {
|
pub fn new_empty(custom_fields: &[CustomField]) -> Self {
|
||||||
Self {
|
Self {
|
||||||
name: String::default(),
|
name: String::default(),
|
||||||
email: String::default(),
|
email: String::default(),
|
||||||
|
|
Loading…
Reference in a new issue