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

#[bindings] : variable bindings as associated consts #194

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

kanarus
Copy link
Member

@kanarus kanarus commented Jun 28, 2024

Before

[vars]
VAR = "value"
#[bindings]
struct Bindings;

had method Bindings::VAR() -> &'static str, but it's more natural to have const Bindings::VAR: &'static str


This is a breaking change and bumps major version

@kanarus kanarus merged commit 9dd49f2 into main Jun 28, 2024
2 checks passed
@kanarus kanarus deleted the variable_bindings_as_associated_consts branch June 28, 2024 07:44
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.

1 participant