summaryrefslogtreecommitdiffstats
path: root/src/query/scorer.rs
diff options
context:
space:
mode:
authorPaul Masurel <paul.masurel@gmail.com>2018-03-10 12:20:55 +0900
committerPaul Masurel <paul.masurel@gmail.com>2018-03-10 12:21:50 +0900
commita3b44773bb93e50c9d94eba4a724f2156544a82d (patch)
treebe56d3efbb2cf51d91486ab67bbae9d2cfe8441f /src/query/scorer.rs
parentec7c582109dfdda31fd483fab447a55e325d9e5f (diff)
Bugfix and rustfmt
Diffstat (limited to 'src/query/scorer.rs')
-rw-r--r--src/query/scorer.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/query/scorer.rs b/src/query/scorer.rs
index e1bba45..7deadb0 100644
--- a/src/query/scorer.rs
+++ b/src/query/scorer.rs
@@ -51,8 +51,10 @@ impl DocSet for EmptyScorer {
}
fn doc(&self) -> DocId {
- panic!("You may not call .doc() on a scorer \
- where the last call to advance() did not return true.");
+ panic!(
+ "You may not call .doc() on a scorer \
+ where the last call to advance() did not return true."
+ );
}
fn size_hint(&self) -> u32 {