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

value_tests: fix clippy's new complaint about needless_borrows_for_generic_args #861

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

piodul
Copy link
Collaborator

@piodul piodul commented Nov 17, 2023

A new clippy lint started complaining about the check_ref_tuple test: its inner assert_has_batch_values, supposedly, needlessly borrows its argument.

As it looks like one of the points of the test is to verify that batch values taken by reference still implement batch values, the clippy lint seems incorrect. Silence the lint by explicitly specifying that the type of the generic argument for assert_has_batch_values is a reference.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

…neric_args

A new clippy lint started complaining about the `check_ref_tuple` test:
its inner `assert_has_batch_values`, supposedly, needlessly borrows its
argument.

As it looks like one of the points of the test is to verify that batch
values taken by reference still implement batch values, the clippy lint
seems incorrect. Silence the lint by explicitly specifying that the type
of the generic argument for `assert_has_batch_values` is a reference.
@piodul piodul requested a review from Lorak-mmk November 17, 2023 14:29
@Lorak-mmk Lorak-mmk merged commit e1c9105 into scylladb:main Nov 17, 2023
8 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