From 19219316a806d87df4505e299d231345eab4880d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Sun, 5 Jan 2020 12:39:10 +0100 Subject: [PATCH] index: Fix some lint issues. --- src/document.rs | 4 ++-- src/index.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/document.rs b/src/document.rs index 601f3f0..a8d2e8e 100644 --- a/src/document.rs +++ b/src/document.rs @@ -25,7 +25,7 @@ fn value_to_py(py: Python, value: &Value) -> PyResult { Value::I64(num) => (*num).into_py(py), Value::F64(num) => (*num).into_py(py), Value::Bytes(b) => b.to_object(py), - Value::PreTokStr(pretoken) => { + Value::PreTokStr(_pretoken) => { // TODO implement me unimplemented!(); } @@ -54,7 +54,7 @@ fn value_to_string(value: &Value) -> String { Value::Bytes(bytes) => format!("{:?}", bytes), Value::Date(d) => format!("{:?}", d), Value::Facet(facet) => facet.to_string(), - Value::PreTokStr(pretok) => { + Value::PreTokStr(_pretok) => { // TODO implement me unimplemented!(); } diff --git a/src/index.rs b/src/index.rs index c20af98..546a1be 100644 --- a/src/index.rs +++ b/src/index.rs @@ -11,7 +11,7 @@ use crate::searcher::Searcher; use crate::to_pyerr; use tantivy as tv; use tantivy::directory::MmapDirectory; -use tantivy::schema::{Field, NamedFieldDocument, Term, Value}; +use tantivy::schema::{NamedFieldDocument, Term, Value}; const RELOAD_POLICY: &str = "commit"; @@ -132,7 +132,7 @@ impl IndexWriter { field_name ))) } - Value::PreTokStr(pretok) => { + Value::PreTokStr(_pretok) => { return Err(exceptions::ValueError::py_err(format!( "Field `{}` is pretokenized. This is not authorized for delete.", field_name