From b02dd47225f210ec68a9feae02e5e3befdc26ee1 Mon Sep 17 00:00:00 2001 From: gi8 Date: Mon, 20 Mar 2023 00:31:28 +0100 Subject: [PATCH] make tarpaulin happy --- src/args.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/args.rs b/src/args.rs index 0c89024..b411a23 100644 --- a/src/args.rs +++ b/src/args.rs @@ -158,9 +158,7 @@ impl Args { .add(Filter::Variable, arg, value, &mut args)?; } // UNKNOWN - _ => { - return Err(ParseArgsError::UnknownFlag(arg.to_string())); - } + _ => return Err(ParseArgsError::UnknownFlag(arg.to_string())), } } @@ -193,17 +191,6 @@ mod tests { ); } - #[test] - fn test_parse_unknown_flag2() { - let args = vec!["--unknown-flag"]; - let parsed_args = Args::parse(args); - assert!(parsed_args.is_err()); - assert_eq!( - parsed_args.unwrap_err(), - ParseArgsError::UnknownFlag("--unknown-flag".to_owned()) - ); - } - #[test] fn test_parse_help_flag() { let args = vec!["-h"];