Skip to content

Commit 6be3c3c

Browse files
[rustdoc-json] Implement PartialOrd and Ord for rustdoc_types::Id
1 parent 52882f6 commit 6be3c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustdoc-json-types/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ pub enum AssocItemConstraintKind {
388388
/// Rustdoc makes no guarantees about the inner value of Id's. Applications
389389
/// should treat them as opaque keys to lookup items, and avoid attempting
390390
/// to parse them, or otherwise depend on any implementation details.
391-
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
391+
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
392392
// FIXME(aDotInTheVoid): Consider making this non-public in rustdoc-types.
393393
pub struct Id(pub u32);
394394

0 commit comments

Comments
 (0)