From a1e6b5e2cc1c9d2fc2ca91ead91feb03e3c8e4bc Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 18 May 2021 01:26:40 +0100 Subject: [PATCH] commands: Move MGI etc. into prelude apitest wants them. Not sure why this wasn't global before. Signed-off-by: Ian Jackson --- src/commands.rs | 5 ----- src/prelude.rs | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 317fb6a2..a3901244 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -4,11 +4,6 @@ use crate::prelude::*; -pub type MC = MgmtCommand; -pub type MGI = MgmtGameInstruction; -pub type MGR = MgmtGameResponse; -pub type MR = MgmtResponse; - #[derive(Debug,Serialize,Deserialize)] pub enum MgmtCommand { Noop, diff --git a/src/prelude.rs b/src/prelude.rs index 8b8f9b3e..277ae898 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -182,7 +182,11 @@ pub type AE = anyhow::Error; pub type AS = AccountScope; // commands.rs +pub type MC = MgmtCommand; pub type ME = MgmtError; +pub type MGI = MgmtGameInstruction; +pub type MGR = MgmtGameResponse; +pub type MR = MgmtResponse; pub type PUM = ProgressUpdateMode; // error.rs -- 2.30.2