aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/factory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/factory.rs')
-rw-r--r--crates/shirabe/src/factory.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/factory.rs b/crates/shirabe/src/factory.rs
index e0eb42c..101e4cd 100644
--- a/crates/shirabe/src/factory.rs
+++ b/crates/shirabe/src/factory.rs
@@ -844,12 +844,12 @@ impl Factory {
if full_load {
// The back-reference is now upgradeable, so dispatching the INIT event (which may read
// the Composer through the dispatcher) is safe only after the Rc has been constructed.
- let init_event = Event::from_name(PluginEvents::INIT.to_string());
+ let mut init_event = Event::from_name(PluginEvents::INIT.to_string());
let init_event_name = init_event.get_name().to_string();
let dispatcher = composer.borrow().get_event_dispatcher();
dispatcher
.borrow_mut()
- .dispatch(Some(&init_event_name), Some(init_event))?;
+ .dispatch(Some(&init_event_name), Some(&mut init_event))?;
// once everything is initialized we can
// purge packages from local repos if they have been deleted on the filesystem