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) {
|
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"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user