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

Some refactoring about gdnative-derive #922

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

Bogay
Copy link
Contributor

@Bogay Bogay commented Aug 8, 2022

  • use parse_quote! instead of quote! to gain type inference.
  • add some methods to PropertyAttrArgs to has single point to define error so that they are not spreaded across add_pair.

They are originally named the same as the module.
Extracting some duplicated code to methods to define errors.
@Bromeon
Copy link
Member

Bromeon commented Aug 10, 2022

This simplifies a big amount, thanks a lot!

bors r+

@Bromeon Bromeon added the quality-of-life No new functionality, but improves ergonomics/internals label Aug 10, 2022
@Bromeon Bromeon added this to the v0.10.1 milestone Aug 10, 2022
@bors
Copy link
Contributor

bors bot commented Aug 10, 2022

Build succeeded:

@bors bors bot merged commit 1b4754c into godot-rust:master Aug 10, 2022
@Bogay Bogay deleted the refactor/simplify-gdnative-derive branch August 11, 2022 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quality-of-life No new functionality, but improves ergonomics/internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants