Performed a partial compile cleanup.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
2026-04-23 11:31:52 -04:00
parent 88cd6cd606
commit 160de994bb
14 changed files with 34 additions and 31 deletions

View File

@@ -14,7 +14,7 @@ use queue::{
SenderID,
};
use std::{
sync::mpsc::{channel, Receiver, RecvTimeoutError, Sender},
sync::mpsc::{channel, Receiver, RecvTimeoutError},
time::Duration,
};
use uuid::Uuid;
@@ -76,11 +76,11 @@ impl MTTClient {
for path in paths.iter().cloned() {
let reg_msg = Register::new(sender_id.clone(), RegMsg::AddRoute(path));
queue.send(msg.set_action(reg_msg));
let result = rx.recv().unwrap();
rx.recv().unwrap();
}
match sess_id {
Some(id) => {
let sess_id = match Uuid::try_from(id.as_str()) {
match Uuid::try_from(id.as_str()) {
Ok(data) => {
let mut qry = Query::new(Session::doc_names()[0].clone());
let mut calc = Calculation::new(Operand::Equal);
@@ -243,7 +243,7 @@ impl MoreThanText {
MTTClient::new(self.queue.clone(), Some(id), lang)
}
pub fn get_document(&self, name: &str, id: &str) -> Result<String, MTTError> {
pub fn get_document(&self, name: &str, _id: &str) -> Result<String, MTTError> {
if name == "page" {
Ok("something".to_string())
} else {
@@ -260,7 +260,7 @@ pub struct TestMoreThanText {
impl TestMoreThanText {
pub fn new() -> Self {
let mut mtt = MoreThanText::new();
let mtt = MoreThanText::new();
let queue = mtt.queue.clone();
Self {
mtt: mtt,