mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/logic.rs')
-rw-r--r--src/block/logic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block/logic.rs b/src/block/logic.rs
index e6338a6..aea9d47 100644
--- a/src/block/logic.rs
+++ b/src/block/logic.rs
@@ -319,7 +319,7 @@ impl fmt::Display for ProcessorDeserializeError
{
match self
{
- Self::Read(..) => write!(f, "Failed to read data from buffer"),
+ Self::Read(e) => e.fmt(f),
Self::Decompress(e) => e.fmt(f),
Self::DecompressStall => write!(f, "Decompressor stalled before completion"),
Self::FromUtf8(e) => e.fmt(f),
@@ -386,7 +386,7 @@ impl fmt::Display for ProcessorSerializeError
{
match self
{
- Self::Write(..) => write!(f, "Failed to write data to buffer"),
+ Self::Write(e) => e.fmt(f),
Self::Compress(e) => e.fmt(f),
Self::CompressEof(remain) => write!(f, "Compression overflow with {remain} bytes of input remaining"),
Self::CompressStall => write!(f, "Compressor stalled before completion"),