mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-13 11:37:39 +02:00
apply correct formatting
This commit is contained in:
parent
ddb3b1a2bb
commit
546d0efe21
1 changed files with 3 additions and 9 deletions
|
@ -769,19 +769,13 @@ mod test {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn get_help_short() {
|
fn get_help_short() { get_help_inner("-h"); }
|
||||||
get_help_inner("-h");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn get_help_long() {
|
fn get_help_long() { get_help_inner("--help"); }
|
||||||
get_help_inner("--help");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn get_help_subcommand() {
|
fn get_help_subcommand() { get_help_inner("help"); }
|
||||||
get_help_inner("help");
|
|
||||||
}
|
|
||||||
|
|
||||||
fn get_help_inner(input: &str) {
|
fn get_help_inner(input: &str) {
|
||||||
let error = AdminCommand::try_parse_from(["argv[0] doesn't matter", input])
|
let error = AdminCommand::try_parse_from(["argv[0] doesn't matter", input])
|
||||||
|
|
Loading…
Add table
Reference in a new issue