Skip to content
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

style: Remove redundant bound #83

Merged
merged 1 commit into from
Dec 8, 2024
Merged

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