Skip to content

Commit

Permalink
fix: carry over const/unsafe to inner function impl (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko authored Aug 7, 2023
1 parent 085731f commit e88f657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub fn plugin_fn(
quote! {
#[no_mangle]
pub #constness #unsafety extern "C" fn #name() -> i32 {
fn inner #generics(#inputs) #output {
#constness #unsafety fn inner #generics(#inputs) #output {
#block
}

Expand Down

0 comments on commit e88f657

Please sign in to comment.