-
Notifications
You must be signed in to change notification settings - Fork 490
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
Prevent lint warnings if internal-logs features is not enabled. #2196
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
#[cfg(not(feature = "internal-logs"))] | ||
const _: () = { | ||
let _ = $name; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
here will (double) ensure that the rust compiler will optimize out this at compile-time, and so no runtime code generated.
moving to draft to fix some CI. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2196 +/- ##
=====================================
Coverage 79.1% 79.2%
=====================================
Files 121 121
Lines 20879 20870 -9
=====================================
- Hits 16534 16532 -2
+ Misses 4345 4338 -7 ☔ View full report in Codecov by Sentry. |
Fixes #
Design discussion issue (if applicable) #
Changes
Please provide a brief description of the changes here.
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial, user-facing changes