mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-06 09:12:55 +00:00
clippy: fix needless_bool warnings
This commit is contained in:
committed by
Paul Masurel
parent
3e2ad7542d
commit
feec2e2620
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user