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