[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> { pub fn new(path: FieldPath, predicate: Box<P>) -> FieldPredicate<P> {
FieldPredicate { FieldPredicate {
header_field_path: path, header_field_path: path,
predicate: predicate, predicate,
} }
} }

View File

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

View File

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

View File

@ -31,7 +31,7 @@ pub struct VersionLt {
impl VersionLt { impl VersionLt {
pub fn new(version: Version) -> 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 { pub fn new(tag: Tag) -> HasTag {
HasTag { HasTag {
tag: tag, tag,
} }
} }
@ -56,7 +56,7 @@ impl HasAllTags {
pub fn new(tags: Vec<Tag>) -> HasAllTags { pub fn new(tags: Vec<Tag>) -> HasAllTags {
HasAllTags { HasAllTags {
tags: tags, tags,
} }
} }
@ -80,7 +80,7 @@ impl HasAnyTags {
pub fn new(tags: Vec<Tag>) -> HasAnyTags { pub fn new(tags: Vec<Tag>) -> HasAnyTags {
HasAnyTags { HasAnyTags {
tags: tags, tags,
} }
} }