diff --git a/tests/yaml.rs b/tests/yaml.rs index ce93730a999..d2e58d28f3d 100644 --- a/tests/yaml.rs +++ b/tests/yaml.rs @@ -213,7 +213,7 @@ fn app_not_hash() { #[should_panic = "YAML file must be a hash"] fn arg_file_not_hash() { let yml = load_yaml!("fixtures/not_hash.yaml"); - Arg::from(yml); + let _ = Arg::from(yml); } #[test] @@ -241,7 +241,7 @@ fn subcommand_name_not_string() { #[should_panic = "Arg name must be a string"] fn arg_name_not_string() { let yml = load_yaml!("fixtures/name_not_string.yaml"); - Arg::from(yml); + let _ = Arg::from(yml); } #[test] @@ -255,7 +255,7 @@ fn app_field_not_string() { #[should_panic = "Arg fields must be strings"] fn arg_field_not_string() { let yml = load_yaml!("fixtures/arg_field_not_string.yaml"); - Arg::from(yml); + let _ = Arg::from(yml); } #[test]