refactor(server): fix clippy warnings from Rust 1.93

- Use #[derive(Default)] + #[default] instead of manual Default impls
  for FacingDirection, KnowledgeState, RelationshipState, EntityVisibility
- Replace manual modulo check with .is_multiple_of()
- Collapse nested if in shadowcast symmetry check

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 18:18:04 +01:00
co-authored by Claude Opus 4.6
parent 2fd16f08b0
commit ad653cffc3
4 changed files with 12 additions and 34 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ pub fn decay_knowledge(
mut knowledge_query: Query<&mut KnowledgeGraph>,
) {
// Decay runs every 10 ticks (1 game-minute per D-031)
if time.tick % 10 != 0 {
if !time.tick.is_multiple_of(10) {
return;
}
for mut kg in knowledge_query.iter_mut() {