* Cargo Format
* Clippy
This commit is contained in:
Paul Masurel
2018-09-15 20:20:22 +09:00
committed by GitHub
parent 06e7bd18e7
commit 10f6c07c53
44 changed files with 208 additions and 224 deletions

View File

@@ -31,7 +31,7 @@ fn extract_doc_given_isbn(index: &Index, isbn_term: &Term) -> tantivy::Result<Op
searcher.search(&term_query, &mut top_collector)?;
if let Some(doc_address) = top_collector.docs().first() {
let doc = searcher.doc(doc_address)?;
let doc = searcher.doc(*doc_address)?;
Ok(Some(doc))
} else {
// no doc matching this ID.