mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/logic/mod.rs')
-rw-r--r--src/logic/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logic/mod.rs b/src/logic/mod.rs
index cd9ba52..967ca22 100644
--- a/src/logic/mod.rs
+++ b/src/logic/mod.rs
@@ -23,7 +23,7 @@ macro_rules!match_select
}
impl LogicField {
- pub fn is_readable(&self) -> bool {
+ #[must_use] pub fn is_readable(&self) -> bool {
match_select!(
self,
LogicField,
@@ -73,7 +73,7 @@ impl LogicField {
)
}
- pub fn is_writable(&self) -> bool {
+ #[must_use] pub fn is_writable(&self) -> bool {
match_select!(self, LogicField, Enabled, Shoot, ShootP, Config, Color)
}
}