-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
From my perspective the following warning is not really valid?
warning: Warning
┌─ script:51:9
│
47 │ fn get_causes(causes) {
│ ╭───────────────────────'
48 │ │ let top = #{};
49 │ │ let bottom = #{};
50 │ │
51 │ │ for (i, (k, v)) in causes.iter().enumerate() {
│ │ ^^^^^^^^^^^ Pattern might panic
· │
65 │ │ html
66 │ │ }
│ ╰─' In this context
│
= Hint: Rewrite to:
if (i, (k, v)) {
// ..
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels