refactor(server): apply rustfmt and clippy suggestions

Formatting pass across simulation, perception, knowledge, NPC, and
test modules. Includes two clippy fixes in monologue.rs (.values()
instead of for (_, v) pattern).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-16 00:40:43 +01:00
co-authored by Claude Opus 4.6
parent 8ec875385a
commit d0663c4193
21 changed files with 600 additions and 274 deletions
+6 -4
View File
@@ -4,9 +4,9 @@
//! Run with: cargo test --test shadowcast_bench -- --ignored --nocapture
use rand::Rng;
use rand_chacha::ChaCha8Rng;
use rand::SeedableRng;
use settled_reach_server::perception::shadowcast::{symmetric_shadowcast, recursive_shadowcast};
use rand_chacha::ChaCha8Rng;
use settled_reach_server::perception::shadowcast::{recursive_shadowcast, symmetric_shadowcast};
use std::collections::HashSet;
use std::time::Instant;
@@ -173,12 +173,14 @@ fn benchmark_symmetric_vs_recursive() {
let results = bench_config(&config);
println!(" Symmetric: {:.2}ms total, {:.2}µs/call, {:.1} tiles avg",
println!(
" Symmetric: {:.2}ms total, {:.2}µs/call, {:.1} tiles avg",
results.symmetric_ms,
results.symmetric_ms * 1000.0 / config.iterations as f64,
results.symmetric_avg_tiles
);
println!(" Recursive: {:.2}ms total, {:.2}µs/call, {:.1} tiles avg",
println!(
" Recursive: {:.2}ms total, {:.2}µs/call, {:.1} tiles avg",
results.recursive_ms,
results.recursive_ms * 1000.0 / config.iterations as f64,
results.recursive_avg_tiles