Commit 9c57966
committed
Merge rust-bitcoin#4954: chore: remove redundant .to_string() call in embedded example
fe9179c chore: remove redundant .to_string() call in embedded example (Bugar)
Pull request description:
Remove unnecessary .to_string() call on string literal in assert_eq! macro. The assert_eq! macro can compare String and &str directly through PartialEq<&str> for String, making the .to_string() call redundant and creating an unnecessary allocation
ACKs for top commit:
apoelstra:
ACK fe9179c; successfully ran local tests
Tree-SHA512: d098c389f7ec1cb5d1b09a5c9d24f09899a90a3469a77f07ceb24993770c1eedb518a9f5bcac0037860a7b7d31b9fa43d72f79d30c4e6516cbfe09f2674e8ab41 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments