mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/payload.rs')
-rw-r--r--src/block/payload.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block/payload.rs b/src/block/payload.rs
index e302770..164c0bb 100644
--- a/src/block/payload.rs
+++ b/src/block/payload.rs
@@ -315,8 +315,8 @@ impl fmt::Display for PayloadDeserializeError
match self
{
Self::ContentType(have) => write!(f, "expected content {:?} or {:?} but got {have:?}", content::Type::Block, content::Type::Unit),
- Self::BlockNotFound(e) => e.fmt(f),
- Self::UnitNotFound(e) => e.fmt(f),
+ Self::BlockNotFound(..) => f.write_str("payload block not found"),
+ Self::UnitNotFound(..) => f.write_str("payload unit not found"),
}
}
}