Skip to content

Commit 934d259

Browse files
Fix invalid comparison for Class::Decoration in is_equal_to
1 parent 9c20b2a commit 934d259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/highlight.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ impl Class {
291291
match (self, other) {
292292
(Self::Self_(_), Self::Self_(_))
293293
| (Self::Macro(_), Self::Macro(_))
294-
| (Self::Ident(_), Self::Ident(_))
295-
| (Self::Decoration(_), Self::Decoration(_)) => true,
294+
| (Self::Ident(_), Self::Ident(_)) => true,
295+
(Self::Decoration(c1), Self::Decoration(c2)) => c1 == c2,
296296
(x, y) => x == y,
297297
}
298298
}

0 commit comments

Comments
 (0)