Remove redundant `about` function

finchie
Nov 28, 2023, 1:10 PM
KJ5ZZCA22HVH6MYKGJCTKTX3ZYSTQIJ2P4SBYJDBMFJIBHE4WFWAC

Dependencies

  • [2] 6FCEG2XL Refactor argument documentation into generic function
  • [3] DZIP6GYY Recursively return subcommands in `command_view`

Change contents

  • edit in src/command.rs at line 5
    [2.1848][2.1848:2217]()
    fn about(command: &Command) -> impl ViewSequence<AppState> {
    if let Some(short_about) = command.get_about() {
    if let Some(long_about) = command.get_long_about() {
    return Some(el::details((
    el::summary(short_about.to_string()),
    el::blockquote(long_about.to_string()),
    )));
    }
    }
    None
    }