chiark / gitweb /
commands: Move MGI etc. into prelude
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 18 May 2021 00:26:40 +0000 (01:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 18 May 2021 00:26:51 +0000 (01:26 +0100)
apitest wants them.  Not sure why this wasn't global before.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/commands.rs
src/prelude.rs

index 317fb6a22b6fc76f144ad7bf82c17ffffd5d6fca..a390124474b95894abb1be641a353904742be06e 100644 (file)
@@ -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,
index 8b8f9b3e33e1e13a57166c3d9c550601f7fe3bfc..277ae8980c2d168b46a5eb2108ef374f4261d235 100644 (file)
@@ -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