mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2025-12-23 02:29:57 +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
@@ -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<()> {
|
||||
|
||||
Reference in New Issue
Block a user