Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary Warning #829

Open
Roba1993 opened this issue Oct 2, 2024 · 0 comments
Open

Unnecessary Warning #829

Roba1993 opened this issue Oct 2, 2024 · 0 comments

Comments

@Roba1993
Copy link
Contributor

Roba1993 commented Oct 2, 2024

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)) {
         // ..
     }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant