I thought I wanted this for replacing literal piece values in tests,
but actually I don't think I do since MGI::ListPieces and list_pieces
will do. But there seems little harm in it, so keep it.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
pub type JsV = serde_json::Value;
pub type MC = MgmtCommand;
+mod pi {
+ use otter::prelude::define_index_type;
+ define_index_type!{ pub struct PIA = usize; }
+ define_index_type!{ pub struct PIB = usize; }
+}
+pub use pi::*;
+
// -------------------- private crates ----------
use otter_support::config::DAEMON_STARTUP_REPORT;
}
}
-mod pi {
- use otter::prelude::define_index_type;
- define_index_type!{ pub struct PIA = usize; }
- define_index_type!{ pub struct PIB = usize; }
-}
-pub use pi::*;
-
type Pieces<PI> = IndexVec<PI, PieceInfo<JsV /*~PreparedPieceState*/>>;
type PiecesSlice<PI> = IndexSlice<PI,[PieceInfo<JsV>]>;