-
Notifications
You must be signed in to change notification settings - Fork 30
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
Address #90: Add must_use message to pub Results #95
Conversation
colelawrence
commented
Sep 6, 2019
- Remove redundant must_use from internal fns
Remove redundant must_use from internal fns
Codecov Report
@@ Coverage Diff @@
## master #95 +/- ##
=========================================
Coverage ? 95.95%
=========================================
Files ? 36
Lines ? 5594
Branches ? 0
=========================================
Hits ? 5368
Misses ? 226
Partials ? 0
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #95 +/- ##
=========================================
Coverage ? 95.97%
=========================================
Files ? 36
Lines ? 5594
Branches ? 0
=========================================
Hits ? 5369
Misses ? 225
Partials ? 0
Continue to review full report at Codecov.
|
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.
Some small adjustments needed, please see the comments.
@colelawrence Do you know if it's possible to specify the warning message as a Edit: CI complains about the formatting, are you running |
I'll look into that and implement your suggestions |
I haven't been running I ran cargo fmt and this happened is that normal? Sorry, if there's something silly I'm missing... |
I think it's some mis-formatting in rustfmt. But since we check that in CI, this is how it's "supposed" to look. |
I asked about the static string idea, and I heard that we won't be able to use a static str or const within the attribute macro syntax due to different compilation steps. However, it would be possible to create a I would guess it could be relatively simple, but I haven't looked into it beyond that. |
Thanks for looking into this. I think we can just keep this as-is for now. There aren't that many messages after all and I feel like using proc-macros would add unneeded complexity to something that is fairly simple. |
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 - thank you @colelawrence for working on this!