Prefer fallible slice access for variable indices
Direct indexing with a variable can panic when the index is out of bounds.
#Metadata
#Why it matters
Slice indexing with a non-literal index panics on bounds failure. Use `.get(index)` when the index comes from a variable and handle `None` explicitly.
#Remediation
Replace direct indexing with `.get(index)` and handle the `None` case.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/rust/rust.correctness.unchecked-index.rule.yaml.