Avoid an unnecessary allocation in `TaggedHash` 2023-11-one-less-alloc
authorMatt Corallo <git@bluematt.me>
Tue, 7 Nov 2023 05:07:09 +0000 (05:07 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 7 Nov 2023 05:08:16 +0000 (05:08 +0000)
commit1aa5210c2f1a1ae21da9030f42f3f3117cf749a5
tree6586d559c366c7b889e1e8622c2525a4a850f21c
parent96e7d7a258fcaa8fa572aca5ea52cbdea7976719
Avoid an unnecessary allocation in `TaggedHash`

A well-formed tag is always a constant, so allocating to store it
is unnecessary when we can just make the tag a `&'static str`.
lightning/src/offers/merkle.rs