Skip to content

Commit

Permalink
Fix strikethrough options refusing to accept name = value syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Jan 26, 2020
1 parent 820d50e commit 581eb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command_attr/src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ impl AttributeOption for Vec<Ident> {

impl AttributeOption for Option<String> {
fn parse(values: Values) -> Result<Self> {
validate(&values, &[ValueKind::Name, ValueKind::SingleList])?;
validate(&values, &[ValueKind::Name, ValueKind::Equals, ValueKind::SingleList])?;

Ok(if values.literals.is_empty() {
Some(String::new())
Expand Down

0 comments on commit 581eb2f

Please sign in to comment.