-
Notifications
You must be signed in to change notification settings - Fork 679
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
Remove dead code warnings from test #1963
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.
Why do we have dead code in the first place?
Codecov Report
@@ Coverage Diff @@
## staging #1963 +/- ##
===========================================
+ Coverage 86.59% 86.69% +0.09%
===========================================
Files 167 167
Lines 31693 31653 -40
===========================================
- Hits 27444 27440 -4
+ Misses 4249 4213 -36
Continue to review full report at Codecov.
|
tl;dr: We don't have dead code, but there is a "bug" in cargo. It is a "bug" in cargo (or bad design). From rust book I found this pattern which was exactly what I needed. The problem with this is that every test file (under the Read more about this issue on rust-lang/rust#46379 (I also found the fix there). |
e62a055
to
28d591c
Compare
* Remove dead code warnings from test
Use workaround proposed here to avoid dead code warning.