Skip to content

Commit

Permalink
use unsafe extern in pgrx_embed.rs (#1990)
Browse files Browse the repository at this point in the history
so that it's compatible with `edition = "2024"`
  • Loading branch information
usamoi authored Mar 1, 2025
1 parent 372dae4 commit fa2b8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-pgrx/src/command/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ fn compute_codegen(
for name in symbols.iter() {
let name_ident = Ident::new(name, Span::call_site());
out.extend(quote::quote! {
extern "Rust" {
unsafe extern "Rust" {
fn #name_ident() -> ::pgrx::pgrx_sql_entity_graph::SqlGraphEntity;
}
let entity = unsafe { #name_ident() };
Expand Down

0 comments on commit fa2b8a0

Please sign in to comment.