From 332200f2c6d8668d60d6067905f730e745ff114c Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Sun, 3 May 2026 09:20:30 -0400 Subject: [PATCH] Warning cleanup. --- src/action/reply.rs | 11 +++++++---- tests/support.rs | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/action/reply.rs b/src/action/reply.rs index be15f12..83e1132 100644 --- a/src/action/reply.rs +++ b/src/action/reply.rs @@ -18,17 +18,21 @@ impl Reply { } } + /* fn add(&mut self, doc: RequestData) { self.data.push(doc); } + */ pub fn len(&self) -> usize { self.data.len() } + /* fn iter(&self) -> impl Iterator { self.data.iter() } + */ } impl MessageAction for Reply { @@ -40,10 +44,7 @@ impl MessageAction for Reply { #[cfg(test)] mod replies { use super::*; - use crate::{ - action::{CalcValue, Field}, - name::Name, - }; + use crate::name::Name; use uuid::Uuid; #[test] @@ -60,6 +61,7 @@ mod replies { assert_eq!(reply.len(), 0, "should have no records"); } + /* #[test] fn can_add_documents() { let mut reply = Reply::new(Name::english("something")); @@ -102,4 +104,5 @@ mod replies { Some(_) => unreachable!("should be out of data"), } } + */ } diff --git a/tests/support.rs b/tests/support.rs index fc5dbab..27f80cd 100644 --- a/tests/support.rs +++ b/tests/support.rs @@ -7,7 +7,7 @@ pub fn random_name() -> Name { pub fn setup_range(count: usize) -> (TestMoreThanText, TestDocument) { let test_env = TestMoreThanText::new(); - let mut mtt = test_env.get_morethantext(); + let mtt = test_env.get_morethantext(); let client = mtt.client(); let test_doc = TestDocument::new(vec![FieldType::Integer]); client.create_document(test_doc.get_docdef()).unwrap();