simplify plugin code
This commit is contained in:
parent
1550c52552
commit
1b6b67b332
4 changed files with 6 additions and 6 deletions
|
|
@ -10,7 +10,7 @@ macro_rules! impl_plugin {
|
|||
#[allow(unused_variables)]
|
||||
impl $crate::plugin::PluginInit for $plugin {
|
||||
fn init( dispatcher: &$crate::event::Dispatcher
|
||||
, me: ::std::sync::Arc<Box<$crate::plugin::Plugin>>) {
|
||||
, me: ::std::sync::Arc<$crate::plugin::Plugin>) {
|
||||
$(
|
||||
let new_arc = me.clone();
|
||||
dispatcher.register($pri, move |e: &$evt| {
|
||||
|
|
|
|||
Loading…
Reference in a new issue