We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_equal_to
1 parent 9c20b2a commit 934d259Copy full SHA for 934d259
src/librustdoc/html/highlight.rs
@@ -291,8 +291,8 @@ impl Class {
291
match (self, other) {
292
(Self::Self_(_), Self::Self_(_))
293
| (Self::Macro(_), Self::Macro(_))
294
- | (Self::Ident(_), Self::Ident(_))
295
- | (Self::Decoration(_), Self::Decoration(_)) => true,
+ | (Self::Ident(_), Self::Ident(_)) => true,
+ (Self::Decoration(c1), Self::Decoration(c2)) => c1 == c2,
296
(x, y) => x == y,
297
}
298
0 commit comments