[Auto] lib/entry/filter: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:49:34 +02:00 committed by Matthias Beyer
parent 17de341b90
commit 28e693bdea
5 changed files with 7 additions and 7 deletions

View file

@ -47,7 +47,7 @@ impl<P: Predicate> FieldPredicate<P> {
pub fn new(path: FieldPath, predicate: Box<P>) -> FieldPredicate<P> {
FieldPredicate {
header_field_path: path,
predicate: predicate,
predicate,
}
}

View file

@ -31,7 +31,7 @@ pub struct VersionEq {
impl VersionEq {
pub fn new(version: Version) -> VersionEq {
VersionEq { version: version }
VersionEq { version }
}
}

View file

@ -31,7 +31,7 @@ pub struct VersionGt {
impl VersionGt {
pub fn new(version: Version) -> VersionGt {
VersionGt { version: version }
VersionGt { version }
}
}

View file

@ -31,7 +31,7 @@ pub struct VersionLt {
impl VersionLt {
pub fn new(version: Version) -> VersionLt {
VersionLt { version: version }
VersionLt { version }
}
}

View file

@ -32,7 +32,7 @@ impl HasTag {
pub fn new(tag: Tag) -> HasTag {
HasTag {
tag: tag,
tag,
}
}
@ -56,7 +56,7 @@ impl HasAllTags {
pub fn new(tags: Vec<Tag>) -> HasAllTags {
HasAllTags {
tags: tags,
tags,
}
}
@ -80,7 +80,7 @@ impl HasAnyTags {
pub fn new(tags: Vec<Tag>) -> HasAnyTags {
HasAnyTags {
tags: tags,
tags,
}
}