aboutsummaryrefslogtreecommitdiff
path: root/src/attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/attr.rs')
-rw-r--r--src/attr.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/attr.rs b/src/attr.rs
index 6f50e0a3..2d0f244a 100644
--- a/src/attr.rs
+++ b/src/attr.rs
@@ -74,8 +74,10 @@ impl Eq for Attribute {}
#[cfg(feature = "extra-traits")]
impl PartialEq for Attribute {
fn eq(&self, other: &Self) -> bool {
- self.style == other.style && self.pound_token == other.pound_token
- && self.bracket_token == other.bracket_token && self.path == other.path
+ self.style == other.style
+ && self.pound_token == other.pound_token
+ && self.bracket_token == other.bracket_token
+ && self.path == other.path
&& TokenStreamHelper(&self.tts) == TokenStreamHelper(&other.tts)
&& self.is_sugared_doc == other.is_sugared_doc
}