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/check_platform_reqs_command.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/command/check_platform_reqs_command.rs') diff --git a/crates/shirabe/src/command/check_platform_reqs_command.rs b/crates/shirabe/src/command/check_platform_reqs_command.rs index 23d2240..bfd8b99 100644 --- a/crates/shirabe/src/command/check_platform_reqs_command.rs +++ b/crates/shirabe/src/command/check_platform_reqs_command.rs @@ -40,6 +40,12 @@ pub struct CheckPlatformReqsCommand { base_command_data: BaseCommandData, } +impl Default for CheckPlatformReqsCommand { + fn default() -> Self { + Self::new() + } +} + impl CheckPlatformReqsCommand { pub fn new() -> Self { let mut command = CheckPlatformReqsCommand { @@ -253,7 +259,7 @@ impl Command for CheckPlatformReqsCommand { for (require, link) in composer.get_package().get_dev_requires() { requires .entry(require.to_string()) - .or_insert_with(Vec::new) + .or_default() .push(link.clone()); } } @@ -273,7 +279,7 @@ impl Command for CheckPlatformReqsCommand { for (require, link) in package.get_requires() { requires .entry(require.to_string()) - .or_insert_with(Vec::new) + .or_default() .push(link.clone()); } } -- cgit v1.3.1