You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: d098c389f7ec1cb5d1b09a5c9d24f09899a90a3469a77f07ceb24993770c1eedb518a9f5bcac0037860a7b7d31b9fa43d72f79d30c4e6516cbfe09f2674e8ab4
0 commit comments