aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/run_script_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/run_script_command.rs')
-rw-r--r--crates/shirabe/src/command/run_script_command.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/shirabe/src/command/run_script_command.rs b/crates/shirabe/src/command/run_script_command.rs
index 92f9ccf..141b458 100644
--- a/crates/shirabe/src/command/run_script_command.rs
+++ b/crates/shirabe/src/command/run_script_command.rs
@@ -33,6 +33,12 @@ pub struct RunScriptCommand {
script_events: Vec<&'static str>,
}
+impl Default for RunScriptCommand {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl RunScriptCommand {
pub fn new() -> Self {
let mut command = RunScriptCommand {
@@ -314,9 +320,9 @@ impl Command for RunScriptCommand {
Platform::put_env("COMPOSER_DEV_MODE", if dev_mode { "1" } else { "0" });
- Ok(dispatcher
+ dispatcher
.borrow_mut()
- .dispatch_script(&script, dev_mode, args, IndexMap::new())?)
+ .dispatch_script(&script, dev_mode, args, IndexMap::new())
}
fn initialize(