Skip to content

Unnecessary Warning #829

Description

@Roba1993

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)) {
         // ..
     }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions