Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaddeo committed Sep 6, 2024
1 parent 7bd70da commit cee8997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subcommand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit cee8997

Please sign in to comment.