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

Remove redundant macros in response/result.rs #1107

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

Lorak-mmk
Copy link
Collaborator

generate_deser_type and generate_deser_col_specs are not necessary: generic function is enough.

To ease future development this PR removes those macros.

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.

@Lorak-mmk Lorak-mmk requested a review from wprzytula October 25, 2024 13:53
Copy link

github-actions bot commented Oct 25, 2024

cargo semver-checks found no API-breaking changes in this PR! 🎉🥳
Checked commit: b1b3b81

wprzytula
wprzytula previously approved these changes Oct 26, 2024
Copy link
Collaborator

@wprzytula wprzytula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for noticing that it's not necessary to use macros here!

scylla-cql/src/frame/response/result.rs Outdated Show resolved Hide resolved
This macro is unnecessary, function is enough here.
For ease of future development, lets get rid of such macros.
…ction

This macro is unnecessary, function is enough here.
For ease of future development, lets get rid of such macros.
@wprzytula wprzytula merged commit 4c96bd4 into scylladb:main Oct 28, 2024
11 checks passed
@wprzytula wprzytula mentioned this pull request Nov 14, 2024
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