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

fix: do not explicitly call description on nss error #410

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

didrocks
Copy link
Member

@didrocks didrocks commented Jul 3, 2024

As in the documentation:
/// If you only need description in println, format, log and other
/// formatting contexts, you may want to use Display impl for Code
/// instead.

So, let’s use the display trait as the error macro is using format.

Note that this is prior the logging refactoring.

As in the documentation:
/// If you only need description in `println`, `format`, `log` and other
/// formatting contexts, you may want to use `Display` impl for `Code`
/// instead.

So, let’s use the display trait as the error macro is using format.
    /// If you only need description in `println`, `format`, `log` and other
    /// formatting contexts, you may want to use `Display` impl for `Code`
    /// instead.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.37%. Comparing base (dd7d4ce) to head (314ccc6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #410      +/-   ##
==========================================
- Coverage   84.42%   84.37%   -0.06%     
==========================================
  Files          77       77              
  Lines        6691     6688       -3     
  Branches       75       75              
==========================================
- Hits         5649     5643       -6     
- Misses        730      732       +2     
- Partials      312      313       +1     

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

Copy link
Member

@denisonbarbosa denisonbarbosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short and effective. Nice!

@didrocks didrocks marked this pull request as ready for review July 3, 2024 13:53
@didrocks didrocks requested a review from a team as a code owner July 3, 2024 13:53
@didrocks didrocks merged commit 684d267 into main Jul 3, 2024
6 checks passed
@didrocks didrocks deleted the no_description_error_call branch July 3, 2024 13:53
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.

None yet

3 participants