Skip to content

feat: Mark various functions as const #674

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

Merged
merged 2 commits into from
Oct 12, 2023
Merged

feat: Mark various functions as const #674

merged 2 commits into from
Oct 12, 2023

Conversation

Techassi
Copy link
Member

This PR marks various function across operator-rs as const. This is purely a QoL change. Some downstream code can benefit from this, for example: https://github.com/stackabletech/superset-operator/blob/main/rust/crd/src/lib.rs#L39-L41

@Techassi Techassi self-assigned this Oct 12, 2023
sbernauer
sbernauer previously approved these changes Oct 12, 2023
@sbernauer
Copy link
Member

I would leave it up to you if we want a changelog entry

@Techassi
Copy link
Member Author

I guess we can add one, because sadly the attribute to mark since when functions are const is not stabilized outside of the std library.

@Techassi Techassi added this pull request to the merge queue Oct 12, 2023
Merged via the queue into main with commit 476ea94 Oct 12, 2023
@Techassi Techassi deleted the feat/const-fns branch October 12, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants