mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
test(derive): Update ui test to be correct otherwise
This commit is contained in:
parent
e5ead4ce49
commit
dfc55cd6e3
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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)]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
Loading…
Reference in a new issue