Commit f2e544e
committed
Merge rust-bitcoin#5066: refactor: remove redundant type casts in push_bytes macro
9d1d82c refactor: remove redundant type casts in push_bytes macro (Daniel)
Pull request description:
Rust's automatic type coercion handles array-to-slice conversion, making the explicit `as &[_]` casts redundant. This change makes the code more idiomatic while maintaining identical functionality.
ACKs for top commit:
apoelstra:
ACK 9d1d82c; successfully ran local tests
Tree-SHA512: b06259950e8c02e4b8ba96f43717ab16c41adf4f426ae07347f8e96e1047bcf5e378b4137481988a694351261d94588989814f16d4665fdd705c1ca33763d1081 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments