Code cleaning.

This commit is contained in:
Paul Masurel
2016-07-31 15:34:32 +09:00
parent 0e5d6720ba
commit e486495cb8
20 changed files with 68 additions and 120 deletions

View File

@@ -101,7 +101,7 @@ impl SegmentReader {
/// bearing the given doc id.
/// This method is slow and should seldom be called from
/// within a collector.
pub fn doc(&self, doc_id: &DocId) -> io::Result<Document> {
pub fn doc(&self, doc_id: DocId) -> io::Result<Document> {
self.store_reader.get(doc_id)
}