clippy: fix needless_bool warnings

This commit is contained in:
Laurentiu Nicola
2017-05-16 19:33:14 +03:00
committed by Paul Masurel
parent 3e2ad7542d
commit feec2e2620

View File

@@ -175,13 +175,7 @@ impl FastFieldReader for I64FastFieldReader {
fn is_enabled(field_type: &FieldType) -> bool {
match field_type {
&FieldType::I64(ref integer_options) => {
if integer_options.is_fast() {
true
} else {
false
}
}
&FieldType::I64(ref integer_options) => integer_options.is_fast(),
_ => false,
}
}