Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid an unnecessary allocation in TaggedHash #2714

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

TheBlueMatt
Copy link
Collaborator

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.

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`.
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (96e7d7a) 88.85% compared to head (1aa5210) 88.81%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2714      +/-   ##
==========================================
- Coverage   88.85%   88.81%   -0.04%     
==========================================
  Files         113      113              
  Lines       89170    89170              
  Branches    89170    89170              
==========================================
- Hits        79228    79197      -31     
- Misses       7699     7725      +26     
- Partials     2243     2248       +5     
Files Coverage Δ
lightning/src/offers/merkle.rs 98.97% <100.00%> (ø)

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jkczyz jkczyz merged commit 1e25979 into lightningdevkit:main Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants