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/licenses_command.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/command/licenses_command.rs') diff --git a/crates/shirabe/src/command/licenses_command.rs b/crates/shirabe/src/command/licenses_command.rs index 56aa042..1f054d1 100644 --- a/crates/shirabe/src/command/licenses_command.rs +++ b/crates/shirabe/src/command/licenses_command.rs @@ -41,6 +41,12 @@ pub struct LicensesCommand { base_command_data: BaseCommandData, } +impl Default for LicensesCommand { + fn default() -> Self { + Self::new() + } +} + impl LicensesCommand { pub fn new() -> Self { let mut command = LicensesCommand { @@ -161,8 +167,7 @@ impl Command for LicensesCommand { } }; - let packages: Vec = - packages.into_iter().map(|p| p.into()).collect(); + let packages: Vec = packages.into_iter().collect(); let packages = PackageSorter::sort_packages_alphabetically(packages); let io = self.get_io(); -- cgit v1.3.1