Skip to content

Commit

Permalink
cxx-qt-gen: remove unused paren field from AttributeList
Browse files Browse the repository at this point in the history
  • Loading branch information
ahayzen-kdab committed Aug 5, 2022
1 parent 61f5687 commit 6df8ca6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cxx-qt-gen/src/syntax/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ use syn::{

/// Representation of a list of idents in an attribute, eg attribute(A, B, C)
pub struct AttributeList {
pub paren: Paren,
pub items: Punctuated<Ident, Comma>,
}

impl Parse for AttributeList {
fn parse(input: ParseStream) -> Result<Self> {
let content;
let paren = parenthesized!(content in input);
parenthesized!(content in input);
let items = content.parse_terminated(Ident::parse_any)?;
Ok(AttributeList { paren, items })
Ok(AttributeList { items })
}
}

Expand Down

0 comments on commit 6df8ca6

Please sign in to comment.