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:
Joshua Dutton
2019-08-18 18:26:35 -04:00
committed by Paul Masurel
parent 32e5d7a0c7
commit 9f74786db2
28 changed files with 44 additions and 123 deletions

View File

@@ -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.