aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/licenses_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/licenses_command.rs')
-rw-r--r--crates/shirabe/src/command/licenses_command.rs9
1 files changed, 7 insertions, 2 deletions
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<crate::package::PackageInterfaceHandle> =
- packages.into_iter().map(|p| p.into()).collect();
+ let packages: Vec<crate::package::PackageInterfaceHandle> = packages.into_iter().collect();
let packages = PackageSorter::sort_packages_alphabetically(packages);
let io = self.get_io();