Warning cleanup.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
2026-05-03 09:20:30 -04:00
parent 947c87c215
commit 332200f2c6
2 changed files with 8 additions and 5 deletions

View File

@@ -18,17 +18,21 @@ impl Reply {
} }
} }
/*
fn add(&mut self, doc: RequestData) { fn add(&mut self, doc: RequestData) {
self.data.push(doc); self.data.push(doc);
} }
*/
pub fn len(&self) -> usize { pub fn len(&self) -> usize {
self.data.len() self.data.len()
} }
/*
fn iter(&self) -> impl Iterator<Item = &RequestData> { fn iter(&self) -> impl Iterator<Item = &RequestData> {
self.data.iter() self.data.iter()
} }
*/
} }
impl MessageAction for Reply { impl MessageAction for Reply {
@@ -40,10 +44,7 @@ impl MessageAction for Reply {
#[cfg(test)] #[cfg(test)]
mod replies { mod replies {
use super::*; use super::*;
use crate::{ use crate::name::Name;
action::{CalcValue, Field},
name::Name,
};
use uuid::Uuid; use uuid::Uuid;
#[test] #[test]
@@ -60,6 +61,7 @@ mod replies {
assert_eq!(reply.len(), 0, "should have no records"); assert_eq!(reply.len(), 0, "should have no records");
} }
/*
#[test] #[test]
fn can_add_documents() { fn can_add_documents() {
let mut reply = Reply::new(Name::english("something")); let mut reply = Reply::new(Name::english("something"));
@@ -102,4 +104,5 @@ mod replies {
Some(_) => unreachable!("should be out of data"), Some(_) => unreachable!("should be out of data"),
} }
} }
*/
} }

View File

@@ -7,7 +7,7 @@ pub fn random_name() -> Name {
pub fn setup_range(count: usize) -> (TestMoreThanText, TestDocument) { pub fn setup_range(count: usize) -> (TestMoreThanText, TestDocument) {
let test_env = TestMoreThanText::new(); let test_env = TestMoreThanText::new();
let mut mtt = test_env.get_morethantext(); let mtt = test_env.get_morethantext();
let client = mtt.client(); let client = mtt.client();
let test_doc = TestDocument::new(vec![FieldType::Integer]); let test_doc = TestDocument::new(vec![FieldType::Integer]);
client.create_document(test_doc.get_docdef()).unwrap(); client.create_document(test_doc.get_docdef()).unwrap();