chore: add the missing symbol

Signed-off-by: xixishidibei <xixishidibei@outlook.com>
This commit is contained in:
xixishidibei 2024-09-18 16:12:56 +08:00
parent 257d7812b9
commit 6f07cf1189
2 changed files with 2 additions and 2 deletions

View file

@ -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! {}

View file

@ -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 {