mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
Merge pull request #5735 from epage/xixishidibei
chore: add the missing symbol
This commit is contained in:
commit
75efece802
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 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! {}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue