Moved UserAction into Action.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
14
src/lib.rs
14
src/lib.rs
@@ -5,11 +5,10 @@ mod mtterror;
|
||||
mod name;
|
||||
mod queue;
|
||||
|
||||
use action::Query;
|
||||
use action::{DocDef, Query, UserAction};
|
||||
use document::{
|
||||
clock::Clock,
|
||||
create::CreateDoc,
|
||||
definition::DocDef,
|
||||
field::{Field, FieldType},
|
||||
session::Session,
|
||||
};
|
||||
@@ -33,17 +32,6 @@ mod support_tests {
|
||||
pub static TIMEOUT: Duration = Duration::from_millis(500);
|
||||
}
|
||||
|
||||
enum UserAction {
|
||||
CreateDocument(DocDef),
|
||||
Query(Query),
|
||||
}
|
||||
|
||||
impl From<DocDef> for UserAction {
|
||||
fn from(value: DocDef) -> Self {
|
||||
Self::CreateDocument(value)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct MoreThanText {
|
||||
queue: Queue,
|
||||
|
||||
Reference in New Issue
Block a user