Skip to content

Commit 91c3b21

Browse files
committed
Update derive(DynamicPlugin) to edition 2021 (#3038)
# Objective Edition 2021 requires `dyn Trait` and it won't compile without `dyn`. ## Solution Added `dyn`.
1 parent ffde86e commit 91c3b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_derive/src/app_plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub fn derive_dynamic_plugin(input: TokenStream) -> TokenStream {
88

99
TokenStream::from(quote! {
1010
#[no_mangle]
11-
pub extern "C" fn _bevy_create_plugin() -> *mut bevy::app::Plugin {
11+
pub extern "C" fn _bevy_create_plugin() -> *mut dyn bevy::app::Plugin {
1212
// make sure the constructor is the correct type.
1313
let object = #struct_name {};
1414
let boxed = Box::new(object);

0 commit comments

Comments
 (0)