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

Allow creating Oid from a u32 in a const context #1943

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

syvb
Copy link
Contributor

@syvb syvb commented Nov 12, 2024

This adds a const fn to create an Oid from a u32. Oid::from_u32_unchecked is the only way to do that currently, but it's deprecated and its successor From::from is non-const.

@syvb syvb changed the title Allow creating Oid from u32 in a const context Allow creating Oid from a u32 in a const context Nov 12, 2024
@workingjubilee workingjubilee merged commit 6c9a85f into pgcentralfoundation:develop Nov 13, 2024
14 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