Cargo fmt

This commit is contained in:
Paul Masurel
2018-11-30 22:52:45 +09:00
parent 6af0488dbe
commit a6e767c877
39 changed files with 589 additions and 471 deletions

View File

@@ -105,7 +105,7 @@ fn main() -> tantivy::Result<()> {
// stop words are applied on the query as well.
// The following will be equivalent to `title:frankenstein`
let query = query_parser.parse_query("title:\"the Frankenstein\"")?;
let top_docs = searcher.search(&query, &TopDocs::with_limit(10))?;
let top_docs = searcher.search(&query, &TopDocs::with_limit(10))?;
for (score, doc_address) in top_docs {
let retrieved_doc = searcher.doc(doc_address)?;