-
Notifications
You must be signed in to change notification settings - Fork 407
Fix unused code warnings test. #1480
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
Conversation
lightning/src/util/fairrwlock.rs
Outdated
@@ -17,6 +17,7 @@ pub struct FairRwLock<T> { | |||
waiting_writers: AtomicUsize, | |||
} | |||
|
|||
#[cfg_attr(test, allow(dead_code))] |
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.
Why is this required? Isn't this app only built in test?
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.
Not sure what you mean by app in this context, but in seems the module declaration was the cause of it being built. I now hide the entire module in tests with 853bf81.
853bf81
to
79f42d7
Compare
Codecov Report
@@ Coverage Diff @@
## main #1480 +/- ##
=======================================
Coverage 90.89% 90.89%
=======================================
Files 76 76
Lines 42067 42067
Branches 42067 42067
=======================================
Hits 38238 38238
Misses 3829 3829
Continue to review full report at Codecov.
|
Squashed. |
This PR fixes some 'unused' warnings introduced in #1023, which mainly appear when running tests.