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

@@ -7,13 +7,10 @@
// ---
// Importing tantivy...
#[macro_use]
extern crate tantivy;
use tantivy::collector::TopDocs;
use tantivy::query::QueryParser;
use tantivy::schema::*;
use tantivy::Index;
use tantivy::{Snippet, SnippetGenerator};
use tantivy::{doc, Index, Snippet, SnippetGenerator};
use tempfile::TempDir;
fn main() -> tantivy::Result<()> {