Skip to content

Commit

Permalink
Merge pull request #5735 from epage/xixishidibei
Browse files Browse the repository at this point in the history
chore: add the missing symbol
  • Loading branch information
epage authored Sep 18, 2024
2 parents 257d781 + 6f07cf1 commit 75efece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clap_derive/src/derives/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {}
Expand Down
2 changes: 1 addition & 1 deletion tests/derive/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 75efece

Please sign in to comment.