From 044b65321e4ed201deb4ef130e6ac4fc49de5d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Sun, 5 Jan 2020 16:00:02 +0100 Subject: [PATCH] index: Remove a redundant clone. --- src/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.rs b/src/index.rs index 07912cd..c7760bc 100644 --- a/src/index.rs +++ b/src/index.rs @@ -132,7 +132,7 @@ impl IndexWriter { ))) } }; - Ok(self.inner_index_writer.delete_term(term.clone())) + Ok(self.inner_index_writer.delete_term(term)) } }