[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:
parent
17de341b90
commit
28e693bdea
5 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue