Add the unsafe attribute to no_mangle in plugin method generation
This commit is contained in:
parent
eb27cfa16a
commit
54b1bf1759
@ -62,7 +62,7 @@ pub fn plugin_impl(_attr: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
#(#methods)*
|
#(#methods)*
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[unsafe(no_mangle)]
|
||||||
pub fn plugin() -> Box<dyn pumpkin::plugin::Plugin> {
|
pub fn plugin() -> Box<dyn pumpkin::plugin::Plugin> {
|
||||||
Box::new(#struct_ident::new())
|
Box::new(#struct_ident::new())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user