From efec43b3b8827820cf35fe1b73d8e33f5fe84eb4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 01:16:50 +0900 Subject: refactor: auto-fix clippy warnings --- crates/shirabe/src/command/run_script_command.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/command/run_script_command.rs') 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( -- cgit v1.3.1