mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-04 08:12:54 +00:00
Update import statements in examples, doctests (#633)
Update import statements to edition 2018, including removing `extern crate` and `#[macro_use]`. Alphabetize the statements.
This commit is contained in:
committed by
Paul Masurel
parent
32e5d7a0c7
commit
9f74786db2
@@ -8,13 +8,10 @@
|
||||
//
|
||||
// ---
|
||||
// Importing tantivy...
|
||||
#[macro_use]
|
||||
extern crate tantivy;
|
||||
use tantivy::collector::TopDocs;
|
||||
use tantivy::query::TermQuery;
|
||||
use tantivy::schema::*;
|
||||
use tantivy::Index;
|
||||
use tantivy::IndexReader;
|
||||
use tantivy::{doc, Index, IndexReader};
|
||||
|
||||
// A simple helper function to fetch a single document
|
||||
// given its id from our index.
|
||||
|
||||
Reference in New Issue
Block a user