From 6e46d4c8622feedfcfa69c521a61abc112a9b4b3 Mon Sep 17 00:00:00 2001 From: teor Date: Sun, 26 Jan 2025 05:58:00 +1000 Subject: [PATCH] Fix comment on Ord for SourceId --- src/cargo/core/source_id.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/core/source_id.rs b/src/cargo/core/source_id.rs index 0d3a817d4e4..f3780b584a7 100644 --- a/src/cargo/core/source_id.rs +++ b/src/cargo/core/source_id.rs @@ -581,8 +581,8 @@ impl PartialOrd for SourceId { } } -// Custom comparison defined as canonical URL equality for git sources and URL -// equality for other sources, ignoring the `precise` and `name` fields. +// Custom comparison defined as source kind and canonical URL equality, +// ignoring the `precise` and `name` fields. impl Ord for SourceId { fn cmp(&self, other: &SourceId) -> Ordering { // If our interior pointers are to the exact same `SourceIdInner` then