Skip to content

Remove unneeded allocation #2262

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

Merged

Conversation

Kixunil
Copy link
Contributor

@Kixunil Kixunil commented May 4, 2023

<E as serde::de::Error>::custom() accepts any T: Display, not just String. Therefore it accepts Arguments<'_> too so we can use format_args!() instead of format!().

See #2187 (comment)

`<E as serde::de::Error>::custom()` accepts any `T: Display`, not just
`String`. Therefore it accepts `Arguments<'_>` too so we can use
`format_args!()` instead of `format!()`.

See lightningdevkit#2187 (comment)
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.03 ⚠️

Comparison is base (56b0c96) 91.63% compared to head (6964299) 91.61%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2262      +/-   ##
==========================================
- Coverage   91.63%   91.61%   -0.03%     
==========================================
  Files         104      104              
  Lines       51985    51985              
  Branches    51985    51985              
==========================================
- Hits        47638    47627      -11     
- Misses       4347     4358      +11     
Impacted Files Coverage Δ
lightning-invoice/src/lib.rs 80.02% <100.00%> (ø)

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wpaulino wpaulino merged commit bb38ed3 into lightningdevkit:main May 4, 2023
@Kixunil Kixunil deleted the remove-serde-error-allocation branch May 4, 2023 18:01
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