diff options
author | Paul Masurel <paul.masurel@gmail.com> | 2019-04-24 12:31:32 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 12:31:32 +0900 |
commit | b7c2d0de97583f06b65d20af57ff04bb3217876e (patch) | |
tree | 9c7ecf25bdf1734c67119d88edf8eb29268fe7b3 /src/query/term_query/mod.rs | |
parent | a228825462ab9b224c86047f964279b93d8d6038 (diff) |
Clippy2 (#534)
* Clippy comments
Clippy complaints that about the cast of &[u32] to a *const __m128i,
because of the lack of alignment constraints.
This commit passes the OutputBuffer object (which enforces proper
alignment) instead of `&[u32]`.
* Clippy. Block alignment
* Code simplification
* Added comment. Code simplification
* Removed the extraneous freq block len hack.
Diffstat (limited to 'src/query/term_query/mod.rs')
-rw-r--r-- | src/query/term_query/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/query/term_query/mod.rs b/src/query/term_query/mod.rs index ab89ca2..23db31f 100644 --- a/src/query/term_query/mod.rs +++ b/src/query/term_query/mod.rs @@ -98,16 +98,13 @@ mod tests { } } - #[test] fn test_term_query_count_when_there_are_deletes() { let mut schema_builder = Schema::builder(); let text_field = schema_builder.add_text_field("text", TEXT); let schema = schema_builder.build(); let index = Index::create_in_ram(schema); - let mut index_writer = index - .writer_with_num_threads(1, 5_000_000) - .unwrap(); + let mut index_writer = index.writer_with_num_threads(1, 5_000_000).unwrap(); index_writer.add_document(doc!(text_field=>"a b")); index_writer.add_document(doc!(text_field=>"a c")); index_writer.delete_term(Term::from_field_text(text_field, "b")); |