From d9ca2b5d217dc0341806a2c0b3bde471c34322e4 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 20 Feb 2023 17:02:45 +0100 Subject: [PATCH] uudoc: simplify generation of about text --- src/bin/uudoc.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/bin/uudoc.rs b/src/bin/uudoc.rs index 8276d2ae129..dc821c2dc7a 100644 --- a/src/bin/uudoc.rs +++ b/src/bin/uudoc.rs @@ -196,15 +196,7 @@ impl<'a, 'b> MDWriter<'a, 'b> { } fn description(&mut self) -> io::Result<()> { - if let Some(after_help) = self.markdown_section("about") { - return writeln!(self.w, "\n\n{}", after_help); - } - - if let Some(about) = self - .command - .get_long_about() - .or_else(|| self.command.get_about()) - { + if let Some(about) = self.command.get_about() { writeln!(self.w, "{}", about) } else { Ok(())