Commit 16aa916
committed
Merge rust-bitcoin#5015: remove redundant variable in compact_size encoding
11e87e0 remove redundant variable in compact_size encoding (sent deed)
Pull request description:
Remove unnecessary intermediate variable `v` in the 9-byte encoding branch of `compact_size::encode()`. The variable was assigned `value` and used immediately, adding no functional value
ACKs for top commit:
apoelstra:
ACK 11e87e0; successfully ran local tests; yeah ok
Tree-SHA512: 857ec81aa0e9911a581b9245a2e39595450c164e319e74fa517278a976ad40574a660fa6ca4ad3b2c28423e99f4aa88d05e7e5df7776eeffaaec040231ec3fdc1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | | - | |
| 73 | + | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
0 commit comments