Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyagr committed Jun 13, 2024
1 parent 31d651c commit 64bdb40
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fn write_help_markdown(
// build_table_of_contents_html(buffer, Vec::new(), command, 0).unwrap();
// writeln!(buffer, "</ul></div>").unwrap();

if ! options.disable_toc {
if !options.disable_toc {
writeln!(buffer, "**Command Overview:**\n").unwrap();

build_table_of_contents_markdown(buffer, Vec::new(), command, 0)
Expand Down Expand Up @@ -261,11 +261,7 @@ fn build_command_markdown(
}
*/

writeln!(
buffer,
"## `{}`\n",
command_path.join(" "),
)?;
writeln!(buffer, "## `{}`\n", command_path.join(" "),)?;

if let Some(long_about) = command.get_long_about() {
writeln!(buffer, "{}\n", long_about)?;
Expand Down Expand Up @@ -316,15 +312,12 @@ fn build_command_markdown(

let title_name = get_canonical_name(subcommand);

writeln!(
buffer,
"* `{}` — {}",
title_name,
match subcommand.get_about() {
Some(about) => about.to_string(),
None => String::new(),
}
)?;
writeln!(buffer, "* `{}` — {}", title_name, match subcommand
.get_about()
{
Some(about) => about.to_string(),
None => String::new(),
})?;
}

writeln!(buffer)?;
Expand Down

0 comments on commit 64bdb40

Please sign in to comment.