mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
chore: add the missing symbol
Signed-off-by: xixishidibei <xixishidibei@outlook.com>
This commit is contained in:
parent
257d7812b9
commit
6f07cf1189
2 changed files with 2 additions and 2 deletions
|
@ -230,7 +230,7 @@ pub(crate) fn gen_augment(
|
||||||
let next_display_order = item.next_display_order();
|
let next_display_order = item.next_display_order();
|
||||||
let flatten_group_assert = if matches!(**ty, Ty::Option) {
|
let flatten_group_assert = if matches!(**ty, Ty::Option) {
|
||||||
quote_spanned! { kind.span()=>
|
quote_spanned! { kind.span()=>
|
||||||
<#inner_type as clap::Args>::group_id().expect("cannot `#[flatten]` an `Option<Args>` with `#[group(skip)]");
|
<#inner_type as clap::Args>::group_id().expect("cannot `#[flatten]` an `Option<Args>` with `#[group(skip)]`");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
quote! {}
|
quote! {}
|
||||||
|
|
|
@ -257,7 +257,7 @@ fn docstrings_ordering_with_multiple_clap_partial() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic = "cannot `#[flatten]` an `Option<Args>` with `#[group(skip)]"]
|
#[should_panic = "cannot `#[flatten]` an `Option<Args>` with `#[group(skip)]`"]
|
||||||
fn flatten_skipped_group() {
|
fn flatten_skipped_group() {
|
||||||
#[derive(clap::Parser, Debug)]
|
#[derive(clap::Parser, Debug)]
|
||||||
struct Cli {
|
struct Cli {
|
||||||
|
|
Loading…
Reference in a new issue