LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
docs: correct clippy indexing guidance
Dylan M. Taylorb298c79a7d85
diff --git a/AGENTS.md b/AGENTS.mdindex 959d2808f..31dfd70f0 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -51,7 +51,7 @@ of it. Full standard: `../craftrules/standards/never-crash.md`- **Last-resort guard:** a panic hook plus `catch_unwind` around command dispatch and import/export turns an escapedpanic into an error dialog and keeps the document. It's a safety net, not a licence; keep `panic = "unwind"` on native.- **Prove it:** every crash fix lands with a small synthetic regression test that panicked before the fix.-- Enforced by clippy: root `clippy.toml` allows unwrap/expect/panic/indexing in tests only, and every production crate+- Enforced by clippy: root `clippy.toml` allows unwrap/expect/panic in tests only; indexing is not denied. Every production crateroot (`lib.rs`, each binary's `main.rs`) carries `#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic,clippy::unimplemented, clippy::todo, clippy::unreachable)]`. Not `[workspace.lints]`: those would also hitintegration tests, examples and benches. New crates start with the attribute.diff --git a/CLAUDE.md b/CLAUDE.mdindex 1ff3defb0..5b116781a 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -52,7 +52,7 @@ of it. Full standard: `../craftrules/standards/never-crash.md`- **Last-resort guard:** a panic hook plus `catch_unwind` around command dispatch and import/export turns an escapedpanic into an error dialog and keeps the document. It's a safety net, not a licence; keep `panic = "unwind"` on native.- **Prove it:** every crash fix lands with a small synthetic regression test that panicked before the fix.-- Enforced by clippy: root `clippy.toml` keeps unwrap/expect/panic/indexing allowances scoped to tests. The workspace+- Enforced by clippy: root `clippy.toml` keeps unwrap/expect/panic allowances scoped to tests; indexing is not denied. The workspacedenies `cognitive_complexity`, `too_many_arguments` and `wildcard_imports`; members inherit them with`[lints] workspace = true`, and `sysmem` repeats those denies in its local lint table. Every production crate root(`lib.rs`, each binary's `main.rs`) carries `#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic,