index: use inline macro for is_empty

pull/2/head
Horki 3 years ago
parent 1bd7691d47
commit 6b9c1524a9

@ -98,6 +98,7 @@ impl InMemoryIndex {
}
/// True if this index contains no data.
#[inline]
pub fn is_empty(&self) -> bool {
self.word_count == 0
}

Loading…
Cancel
Save