Warning cleanup.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
@@ -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<Item = &RequestData> {
|
||||
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"),
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user