Skip to content

Commit

Permalink
fix(derive): Quote the attribute in the error
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 28, 2022
1 parent 5d99204 commit 79ba02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_derive/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ fn assert_attr_kind(attr: &ClapAttr, possible_kind: &[AttrKind]) {
if !possible_kind.contains(attr.kind.get()) {
let options = possible_kind
.iter()
.map(|k| format!("`#[{}({})]", k.as_str(), attr.name))
.map(|k| format!("`#[{}({})]`", k.as_str(), attr.name))
.collect::<Vec<_>>();
abort!(
attr.name,
Expand Down

0 comments on commit 79ba02d

Please sign in to comment.