Merge pull request #5735 from epage/xixishidibei

chore: add the missing symbol
This commit is contained in:
Ed Page 2024-09-18 09:38:04 -04:00 committed by GitHub
commit 75efece802
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 flatten_group_assert = if matches!(**ty, Ty::Option) {
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 {
quote! {}

View file

@ -257,7 +257,7 @@ fn docstrings_ordering_with_multiple_clap_partial() {
}
#[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() {
#[derive(clap::Parser, Debug)]
struct Cli {