Skip to content

Conversation

caspermeijn
Copy link
Contributor

This solves clippy warnings like this:

error: the following explicit lifetimes could be elided: 'a
   --> graphql_client_codegen/src/codegen/selection.rs:394:6
    |
394 | impl<'a> ExpandedField<'a> {
    |      ^^                ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
    |
394 - impl<'a> ExpandedField<'a> {
394 + impl ExpandedField<'_> {
    |

This solves clippy warnings like this:
```
error: the following explicit lifetimes could be elided: 'a
   --> graphql_client_codegen/src/codegen/selection.rs:394:6
    |
394 | impl<'a> ExpandedField<'a> {
    |      ^^                ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
    |
394 - impl<'a> ExpandedField<'a> {
394 + impl ExpandedField<'_> {
    |
```
@tomhoule tomhoule merged commit f0857f5 into graphql-rust:main Jan 7, 2025
9 checks passed
@caspermeijn caspermeijn deleted the needless_lifetimes branch March 14, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants