chiark / gitweb /
jstest: lower: Remove now-redundant id field
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 Jul 2021 11:13:36 +0000 (12:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 Jul 2021 11:14:02 +0000 (12:14 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
jstest/jst-lower.rs

index 46fc8e9daf02fa09d53b844c1eb4c7820d8eeea0..b4d118f439b4d4880017d0d04f24de65e2143911 100644 (file)
@@ -29,7 +29,6 @@ macro_rules! sp {
 #[derive(Eq,PartialEq,Ord,PartialOrd)]
 #[derive(Serialize)]
 pub struct StartPiece {
-  id: VisiblePieceId,
   pinned: bool,
   moveable: PieceMoveable,
   z: ZCoord,
@@ -162,7 +161,7 @@ impl TestsAccumulator {
       |StartPieceSpec { id, pinned, moveable }| {
         let id = id.try_into().unwrap();
         let z = zm.increment().unwrap();
-        (id, StartPiece { id, pinned, moveable, z })
+        (id, StartPiece { pinned, moveable, z })
       }
     ).collect();