mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/data/mod.rs')
-rw-r--r--src/data/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/mod.rs b/src/data/mod.rs
index 0cc2104..b8ab386 100644
--- a/src/data/mod.rs
+++ b/src/data/mod.rs
@@ -116,7 +116,7 @@ impl fmt::Display for ReadError
match self
{
Self::Underflow{need, have} => write!(f, "buffer underflow (expected {need} but got {have})"),
- Self::Utf8(e) => e.fmt(f),
+ Self::Utf8(..) => f.write_str("malformed utf-8 in string"),
}
}
}