Commit 986b92a
committed
Use if let and panic
Clippy emits:
warning: you seem to be trying to use `match` for destructuring a
single pattern. Consider using `if let`
The code in question is functionally asserting that the `witness`
argument does not contain variant `Threshold`, the same can be achieved
using an `if let` and a `panic`.1 parent 261b3c4 commit 986b92a
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
0 commit comments