mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/fluid.rs')
| -rw-r--r-- | src/block/fluid.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block/fluid.rs b/src/block/fluid.rs index a9f1349..9f57ff0 100644 --- a/src/block/fluid.rs +++ b/src/block/fluid.rs @@ -81,7 +81,7 @@ impl BlockLogic for FluidBlock { if config < 0 || config > u16::MAX as i32 { - return Err(DataConvertError(Box::new(FluidConvertError(config)))); + return Err(DataConvertError::Custom(Box::new(FluidConvertError(config)))); } Ok(DynData::Content(content::Type::Fluid, config as u16)) } @@ -160,7 +160,7 @@ impl fmt::Display for FluidDeserializeError match self { Self::ContentType(have) => write!(f, "expected content {:?} but got {have:?}", content::Type::Fluid), - Self::NotFound(e) => e.fmt(f), + Self::NotFound(..) => f.write_str("fluid not found"), } } } |