You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mention the value in question (i.e. 1 in the examples below), since the conflicting variant doesn't necessarily have an literal discriminant (D and E below)
Bind unused parameter assistant
This PR introduces a new **Bind unused parameter assistant**.
While we do have a QuickFix from `rustc` (prefixing the parameter with an underscore), it's sometimes more convenient to suppress the warning using the following approach:
```rust
fn some_function(unused: i32) {}
```
->
```rust
fn some_function(unused: i32) {
let _ = unused;
}
```
The error message could:
1
in the examples below), since the conflicting variant doesn't necessarily have an literal discriminant (D
andE
below)The text was updated successfully, but these errors were encountered: