mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 09:28:09 +00:00
Tests: drag command test uses craft::automation's request and reply types
After the craft UI framework move, `control` no longer exports `ControlRequest` or `Outcome`; `control::handle` takes a `craft::automation::ControlRequest` and returns a `Reply`.
This commit is contained in:
@@ -8,8 +8,8 @@ use crate::VectorcraftApp;
|
||||
|
||||
/// Send a control request → its reply.
|
||||
fn control(app: &mut VectorcraftApp, ctx: &egui::Context, method: &str, params: Value) -> Value {
|
||||
let (request, _) = crate::control::ControlRequest::new(method, params);
|
||||
let crate::control::Outcome::Done(reply) = crate::control::handle(app, ctx, &request) else { panic!("{method}: not done") };
|
||||
let (request, _) = craft::automation::ControlRequest::new(method, params);
|
||||
let craft::automation::Reply::Done(reply) = crate::control::handle(app, ctx, &request) else { panic!("{method}: not done") };
|
||||
reply
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user