Commit 87d274b
committed
Merge rust-bitcoin#5034: Remove current index from
4c197ea Remove current index from SliceEncoder (Tobin C. Harding)
Pull request description:
At one stage during development, IIRC, I was trying to mutate the encoder from within a loop and was unable to do so so I added a current index instead. With Andrew's later improved version of `advance` this was no longer the case but I left the `cur_idx` variable in there. Remove it.
This was noticed during review but kindly left for a follow up since its an internal change.
This is a follow up to rust-bitcoin#4982
ACKs for top commit:
apoelstra:
ACK 4c197ea; successfully ran local tests
Tree-SHA512: 1f47b3a0fff8bec58fbf859d4f66720198959b477852541b80138c336cf11646424a2f16cd7c3aacab6aaab3f8619ce2ae4d97abe41be6cd219ce7c7f436045dSliceEncoder
1 file changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 82 | | |
86 | 83 | | |
87 | 84 | | |
88 | | - | |
89 | | - | |
90 | | - | |
| 85 | + | |
91 | 86 | | |
92 | 87 | | |
93 | 88 | | |
| |||
100 | 95 | | |
101 | 96 | | |
102 | 97 | | |
103 | | - | |
| 98 | + | |
104 | 99 | | |
105 | 100 | | |
106 | 101 | | |
| |||
123 | 118 | | |
124 | 119 | | |
125 | 120 | | |
126 | | - | |
| 121 | + | |
127 | 122 | | |
128 | 123 | | |
129 | 124 | | |
130 | 125 | | |
131 | 126 | | |
132 | 127 | | |
133 | 128 | | |
134 | | - | |
| 129 | + | |
| 130 | + | |
135 | 131 | | |
136 | 132 | | |
137 | 133 | | |
138 | | - | |
| 134 | + | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
| |||
0 commit comments