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
fb4c33b Use if let and panic (Tobin C. Harding)
Pull request description:
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`.
ACKs for top commit:
apoelstra:
ACK fb4c33b
Tree-SHA512: 8fc07b7ee7eb7eb47fe13f37f7f39a440eefc9620f8e573d5de535bf90dd5e9f6bb4f404698d2290fe4eafa8be8476a51208fe068df752892b36bf1e55acd09f
0 commit comments