Skip to content

Conversation

caspermeijn
Copy link
Contributor

Remove where bound when the same bound is already specified.

This solves clippy warnings like this:

warning: bound is defined in more than one place
   --> src/query/grammar.rs:169:21
    |
169 | pub fn mutation<'a, T: Text<'a>>(
    |                     ^
...
173 |     T: Text<'a>,
    |     ^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Remove `where` bound when the same bound is already specified.

This solves clippy warnings like this:
```
warning: bound is defined in more than one place
   --> src/query/grammar.rs:169:21
    |
169 | pub fn mutation<'a, T: Text<'a>>(
    |                     ^
...
173 |     T: Text<'a>,
    |     ^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
```
@LegNeato LegNeato merged commit 381f414 into graphql-rust:master Dec 8, 2024
1 check passed
@LegNeato
Copy link
Member

LegNeato commented Dec 8, 2024

Thanks!

@caspermeijn caspermeijn deleted the clippy branch December 19, 2024 12:22
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