fix: Make the examples build

This commit is contained in:
Clément Renault
2019-04-22 15:26:43 +02:00
parent ed6b6038ee
commit 7dbf5d6319
6 changed files with 51 additions and 42 deletions

View File

@ -237,7 +237,7 @@ impl<'a> ser::SerializeSeq for SeqIndexer<'a> {
Ok(())
}
fn end(mut self) -> Result<Self::Ok, Self::Error> {
fn end(self) -> Result<Self::Ok, Self::Error> {
let texts = self.texts.iter().map(String::as_str);
self.indexer.index_text_seq(self.document_id, self.attribute, texts);
Ok(())