pgcentralfoundation / pgrx

Build Postgres Extensions with Rust!
Other
3.7k stars 249 forks source link

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

Closed syvb closed 1 week ago

syvb commented 1 week ago

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.