test(derive): Update ui test to be correct otherwise

This commit is contained in:
Ed Page 2022-06-02 11:59:09 -05:00
parent e5ead4ce49
commit dfc55cd6e3
2 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ use clap::Parser;
#[derive(Parser, Debug)]
#[clap(name = "basic")]
struct Opt {
#[clap(short, default_value = true)]
#[clap(short, default_value_t = true)]
b: bool,
}

View file

@ -1,5 +1,5 @@
error: default_value is meaningless for bool
--> $DIR/bool_default_value.rs:14:19
--> tests/derive_ui/bool_default_value.rs:14:19
|
14 | #[clap(short, default_value = true)]
| ^^^^^^^^^^^^^
14 | #[clap(short, default_value_t = true)]
| ^^^^^^^^^^^^^^^