summaryrefslogtreecommitdiffstats
path: root/src/fastfield/reader.rs
diff options
context:
space:
mode:
authorLaurentiu Nicola <lnicola@dend.ro>2017-05-16 19:55:44 +0300
committerPaul Masurel <paul.masurel@gmail.com>2017-05-17 15:50:07 +0900
commit103ba6ba351b93764c62e79385d8b7b84553401d (patch)
tree29f7b98dc06a943bfd7cc1f668e14355ad91a6d5 /src/fastfield/reader.rs
parent3965b26cd290d97d0a7716636067ca3621036a48 (diff)
clippy: fix match_ref_pats warnings
Diffstat (limited to 'src/fastfield/reader.rs')
-rw-r--r--src/fastfield/reader.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fastfield/reader.rs b/src/fastfield/reader.rs
index b4b761e..982c9da 100644
--- a/src/fastfield/reader.rs
+++ b/src/fastfield/reader.rs
@@ -73,8 +73,8 @@ impl FastFieldReader for U64FastFieldReader {
}
fn is_enabled(field_type: &FieldType) -> bool {
- match field_type {
- &FieldType::U64(ref integer_options) => integer_options.is_fast(),
+ match *field_type {
+ FieldType::U64(ref integer_options) => integer_options.is_fast(),
_ => false,
}
}
@@ -174,8 +174,8 @@ impl FastFieldReader for I64FastFieldReader {
}
fn is_enabled(field_type: &FieldType) -> bool {
- match field_type {
- &FieldType::I64(ref integer_options) => integer_options.is_fast(),
+ match *field_type {
+ FieldType::I64(ref integer_options) => integer_options.is_fast(),
_ => false,
}
}