[PR #1552] [MERGED] Worldgen: Clippy boolean rewrites from TheGaner's #1502 #3580

Closed
opened 2026-11-03 04:10:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1552
Author: @ludovic111
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ludovic111

Base: main ← Head: cg3/pr1502-fixup


📝 Commits (8)

  • 4b1e298 fix(worldgen): resolve upstream Rust 1.90 Clippy boolean warnings
  • fc9822b Merge commit 'd6dc08098a' into fix/worldgen-clippy-bool-20261023
  • 7371b2c Merge commit 'd84d7a7e61' into fix/worldgen-clippy-bool-20261023
  • 6ea7167 Merge commit 'd8dd2023dd' into fix/worldgen-clippy-bool-20261023
  • d66466d Merge commit '22b2711cf9' into fix/worldgen-clippy-bool-20261023
  • 82218db Merge commit '59f018eabe' into fix/worldgen-clippy-bool-20261023
  • e0d29dc Drop the aquifer helper and correct the fire burnout comment
  • c26ced5 Merge origin/main into fix/worldgen-clippy-bool-20261023

📊 Changes

9 files changed (+64 additions, -15 deletions)

View changed files

📝 crates/horizon-world/src/block_survival.rs (+2 -2)
📝 crates/horizon-world/src/edge_backoff.rs (+3 -3)
📝 crates/horizon-world/src/level/bonemeal.rs (+1 -1)
📝 crates/horizon-world/src/level/speleothem.rs (+2 -2)
📝 crates/horizon-world/src/level/tick.rs (+3 -1)
📝 crates/horizon-world/src/worldgen/feature_region.rs (+1 -1)
📝 crates/horizon-world/src/worldgen/placement.rs (+1 -1)
📝 crates/horizon-world/src/worldgen/structure/start.rs (+1 -1)
📝 crates/horizon-world/tests/edge_backoff.rs (+50 -3)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

This carries TheGaner's draft #1502 (their commits, unchanged authorship), plus a review follow-up. Maintainer edits are off on the fork, so the follow-up couldn't go on their branch.

Checked:

  • every boolean rewrite against the original, including evaluation order and where random draws happen; behaviour is kept.
  • Kept only the rewrites that read as well or better: stable Clippy (1.99) was already clean on main.
  • Merged with main: fmt, both CI Clippy runs with -D warnings, world + client tests, and parity --changed origin/main 310/310.
  • LAN host + guest checks: effects, chest, boats, minecarts, eat.

Thanks, TheGaner. Closes #1502 once merged.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1552 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `cg3/pr1502-fixup` --- ### 📝 Commits (8) - [`4b1e298`](https://github.com/horizon-rust/horizon/commit/4b1e298a44ef7c180480d818af8ec4f5f29a5f65) fix(worldgen): resolve upstream Rust 1.90 Clippy boolean warnings - [`fc9822b`](https://github.com/horizon-rust/horizon/commit/fc9822b241a238e2ce93cc5f2b2808f2bcd50d43) Merge commit 'd6dc08098a30a08be7ec168fa3e6b756aa3ac493' into fix/worldgen-clippy-bool-20261023 - [`7371b2c`](https://github.com/horizon-rust/horizon/commit/7371b2cccd48ec07fe68d23d2c2b4f7f9ca88471) Merge commit 'd84d7a7e6178ec1a6afab302c4b8ce80e5d2d9ee' into fix/worldgen-clippy-bool-20261023 - [`6ea7167`](https://github.com/horizon-rust/horizon/commit/6ea7167cbb2e03af99f02ef995da3340af043eaa) Merge commit 'd8dd2023dd9c6129e9e628a66d61c1b10e1435cf' into fix/worldgen-clippy-bool-20261023 - [`d66466d`](https://github.com/horizon-rust/horizon/commit/d66466db8132800c2b106b192c1aa927f9334763) Merge commit '22b2711cf9557d53d21080828c895dbff6027151' into fix/worldgen-clippy-bool-20261023 - [`82218db`](https://github.com/horizon-rust/horizon/commit/82218db8608458ea97d671e82b88ec1f5c110fbf) Merge commit '59f018eabe26093274d34942365d31010c3e3e95' into fix/worldgen-clippy-bool-20261023 - [`e0d29dc`](https://github.com/horizon-rust/horizon/commit/e0d29dc23390fafbcf5a9befee9ac2fb1ac5d1e1) Drop the aquifer helper and correct the fire burnout comment - [`c26ced5`](https://github.com/horizon-rust/horizon/commit/c26ced533e1b3b5875748acc96c25fb495ed8e38) Merge origin/main into fix/worldgen-clippy-bool-20261023 ### 📊 Changes **9 files changed** (+64 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-world/src/block_survival.rs` (+2 -2) 📝 `crates/horizon-world/src/edge_backoff.rs` (+3 -3) 📝 `crates/horizon-world/src/level/bonemeal.rs` (+1 -1) 📝 `crates/horizon-world/src/level/speleothem.rs` (+2 -2) 📝 `crates/horizon-world/src/level/tick.rs` (+3 -1) 📝 `crates/horizon-world/src/worldgen/feature_region.rs` (+1 -1) 📝 `crates/horizon-world/src/worldgen/placement.rs` (+1 -1) 📝 `crates/horizon-world/src/worldgen/structure/start.rs` (+1 -1) 📝 `crates/horizon-world/tests/edge_backoff.rs` (+50 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. This carries TheGaner's draft #1502 (their commits, unchanged authorship), plus a review follow-up. Maintainer edits are off on the fork, so the follow-up couldn't go on their branch. Checked: - every boolean rewrite against the original, including evaluation order and where random draws happen; behaviour is kept. - Kept only the rewrites that read as well or better: stable Clippy (1.99) was already clean on main. - Merged with main: fmt, both CI Clippy runs with `-D warnings`, world + client tests, and `parity --changed origin/main` 310/310. - LAN host + guest checks: effects, chest, boats, minecarts, eat. Thanks, TheGaner. Closes #1502 once merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:10:35 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3580
No description provided.