Skip to content

Commit 0aecc0e

Browse files
FunKiteclaude
andcommitted
Fix Clippy lint issues for Rust 1.91.1
- Remove invalid `clippy::manual_is_multiple_of` lint attribute - Add `#[allow(clippy::comparison_chain)]` for readable comparison chains This resolves CI failures in Dependabot PRs caused by unknown lint and new clippy warnings in Rust 1.91.1. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent e6fdd22 commit 0aecc0e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/bin/octaindex3d-cli.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ impl CompetitiveStats {
198198
self.total_games += 1;
199199
let efficiency = (optimal_moves as f64 / player_moves as f64) * 100.0;
200200

201+
#[allow(clippy::comparison_chain)]
201202
if player_moves < optimal_moves {
202203
self.wins += 1;
203204
} else if player_moves == optimal_moves {
@@ -854,6 +855,7 @@ fn play_game(custom_size: Option<u32>, seed: u64) {
854855

855856
// Exploration efficiency comparison
856857
print!("\r\n🔍 Exploration Comparison:\r\n");
858+
#[allow(clippy::comparison_chain)]
857859
if player_visited < astar_nodes_visited {
858860
let pct_fewer = ((astar_nodes_visited as f64
859861
/ player_visited as f64)
@@ -880,6 +882,7 @@ fn play_game(custom_size: Option<u32>, seed: u64) {
880882
// Competitive result (based on nodes explored)
881883
print!("\r\n🎮 COMPETITIVE RESULT (Fewest Nodes Explored Wins):\r\n");
882884
print!("───────────────────────────────────────\r\n");
885+
#[allow(clippy::comparison_chain)]
883886
if player_visited < astar_nodes_visited {
884887
let nodes_saved = astar_nodes_visited - player_visited;
885888
print!("🏆 YOU WIN! You explored {} fewer nodes than A*!\r\n", nodes_saved);

src/layer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ impl Layer<f64> {
117117
let mut sorted = values.clone();
118118
sorted.sort_by(|a, b| a.partial_cmp(b).unwrap());
119119
let mid = sorted.len() / 2;
120-
#[allow(clippy::manual_is_multiple_of)]
121120
if sorted.len() % 2 == 0 {
122121
Ok((sorted[mid - 1] + sorted[mid]) / 2.0)
123122
} else {

0 commit comments

Comments
 (0)