-
Notifications
You must be signed in to change notification settings - Fork 449
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
Suppress unused variable warning for debug_print macros #1258
Conversation
Any idea why the waterfall is failing? The error seems cryptic to me. |
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑
These are the results when building the
Link to the run | Last update: Wed May 18 08:41:17 CEST 2022 |
Codecov Report
@@ Coverage Diff @@
## master #1258 +/- ##
===========================================
- Coverage 79.12% 62.30% -16.83%
===========================================
Files 227 227
Lines 8638 8638
===========================================
- Hits 6835 5382 -1453
- Misses 1803 3256 +1453
Continue to review full report at Codecov.
|
Just reran it, this worked, I think it was a temporary network failure. |
The size report of the waterfall seems buggy. It reports its whole size as increase. |
This reverts commit 3491cfd.
* first iteration of the BIOC * clippy fixes * suppress unused var warning for debug fn * suppress unused var warning 2nd try * + tests * Apply suggestions from code review Co-authored-by: Alexander Theißen <[email protected]> * renamed to `mother`; added storage * refactor * added a Mapping into contract storage * default constructor * reverted fix * fix * Apply suggestions from code review Co-authored-by: Alexander Theißen <[email protected]> * make it build (but not instantiate) * fmt * Update examples/mother/lib.rs Co-authored-by: Alexander Theißen <[email protected]> * Apply suggestions from code review Co-authored-by: Alexander Theißen <[email protected]> * reverted constructor delegation to satisfy CI (until #1259 fixed) * added required input types * custom event added * CI clippy satisfaction * trick to satisfy the CI until #1258 is fixed * Revert "trick to satisfy the CI until #1258 is fixed" This reverts commit 3491cfd. Co-authored-by: Alexander Theißen <[email protected]>
Thanks for reporting. I thought this case would have been covered by CI. Apparently not. Can you create an issue from that? |
If a variable is only used in the
debug_print(ln)?
macro then a unused variable warning is emitted in case theink-debug
feature isn't used. This fixes this problem by always using the arguments without evaluating them: Capture them by reference in a closure that is never executed.@agryaznov had this problem in his mother contract.