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 needless borrow #89

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

caspermeijn
Copy link
Contributor

This solves clippy warnings like this:

error: this expression creates a reference which is immediately dereferenced by the compiler
   --> src/common.rs:447:34
    |
447 |             unquote_block_string(&block),
    |                                  ^^^^^^ help: change this to: `block`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `-D clippy::needless-borrow` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`

This solves clippy warnings like this:
```
error: this expression creates a reference which is immediately dereferenced by the compiler
   --> src/common.rs:447:34
    |
447 |             unquote_block_string(&block),
    |                                  ^^^^^^ help: change this to: `block`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `-D clippy::needless-borrow` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
```
@LegNeato LegNeato merged commit 01bf047 into graphql-rust:master Jan 16, 2025
3 checks passed
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