-
Notifications
You must be signed in to change notification settings - Fork 734
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
New lint affecting tracing::instrument macro when returning an impl #2613
Comments
The code which triggers this lint is generated here: tracing/tracing-attributes/src/expand.rs Lines 60 to 73 in e603c2a
When the return type is an I think there are two solutions for this:
|
This issue seems to have been fixed #2609. However, what this did to us is clippy now fails for us because we're using an older rust version, where this lint is not present yet. I don't think adding a warning to compilation is a breaking change, but it might be worthwhile to also add |
This issue has been fixed and can be closed now. |
When I updated to the latest clippy via rustup update, I ran into a new lint that doesn't seem to like returning
impl SomeTrait
: https://rust-lang.github.io/rust-clippy/master/index.html#/let_with_type_underscoreSo tracing, when used like this is causing this lint to trigger.
The text was updated successfully, but these errors were encountered: