From cee8997a1a59f608050b2bc887a178989f990d99 Mon Sep 17 00:00:00 2001 From: Marc Addeo Date: Tue, 3 Sep 2024 18:35:51 -0400 Subject: [PATCH] Fix clippy errors --- src/subcommand.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/subcommand.rs b/src/subcommand.rs index a5d43ff42a..6dfa389b6c 100644 --- a/src/subcommand.rs +++ b/src/subcommand.rs @@ -452,7 +452,7 @@ impl Subcommand { signature_widths: &BTreeMap<&str, usize>, ) { let doc = doc.unwrap_or(""); - let aliases = aliases.unwrap_or(Vec::new()); + let aliases = aliases.unwrap_or_default(); let print_doc = !doc.is_empty() && doc.lines().count() <= 1; if print_doc || !aliases.is_empty() { @@ -628,7 +628,7 @@ impl Subcommand { format_doc( config, recipe.name(), - doc.as_deref(), + doc, aliases.get(recipe.name()).cloned(), max_signature_width, &signature_widths,