Commit e8a8df7
committed
Merge rust-bitcoin/rust-miniscript#501: Remove unreachable statement
fb4c33b5d200dbf8522c4e57a2ed974c4767fc95 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 fb4c33b5d200dbf8522c4e57a2ed974c4767fc95
Tree-SHA512: 8fc07b7ee7eb7eb47fe13f37f7f39a440eefc9620f8e573d5de535bf90dd5e9f6bb4f404698d2290fe4eafa8be8476a51208fe068df752892b36bf1e55acd09f1 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