summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2026-08-23 00:39:05 -0700
committerKai Stevenson <kai@kaistevenson.com>2026-08-23 00:39:05 -0700
commit260d5b0056f1a7177bcc98316592811577a0a565 (patch)
tree06d94543fc0ce06f3c22a39d5fb9b0b324491a09 /src/content
parent350c74bc8ef61833be11bbb2bab6747245e3ae0d (diff)
lint
Diffstat (limited to 'src/content')
-rw-r--r--src/content/entities/entity_grenade.rs2
-rw-r--r--src/content/materials/liquid.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/content/entities/entity_grenade.rs b/src/content/entities/entity_grenade.rs
index ab7aaa4..c13c239 100644
--- a/src/content/entities/entity_grenade.rs
+++ b/src/content/entities/entity_grenade.rs
@@ -20,7 +20,7 @@ impl EntityBehaviour for GrenadeEntityBehaviour {
update_ctx: &mut EntityUpdateCtx,
ctx: &mut SimCtx,
delta_time: f32,
- ) -> () {
+ ) {
self.fuse -= delta_time;
if self.fuse <= 0.0 {
apply_explosion(
diff --git a/src/content/materials/liquid.rs b/src/content/materials/liquid.rs
index 6c3bdcd..23ba0fe 100644
--- a/src/content/materials/liquid.rs
+++ b/src/content/materials/liquid.rs
@@ -57,7 +57,7 @@ pub fn sim_update(ctx: &mut UpdateCtx) -> PostUpdateAction {
}
}
- return PostUpdateAction::Settle;
+ PostUpdateAction::Settle
// we didn't find a hole, so just move "randomly" on the same surface
// TODO when to settle?