File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,10 @@ impl Identifier {
200
200
unsafe { ptr_as_str ( & self . head ) }
201
201
}
202
202
}
203
+
204
+ pub ( crate ) fn ptr_eq ( & self , rhs : & Self ) -> bool {
205
+ self . head == rhs. head && self . tail == rhs. tail
206
+ }
203
207
}
204
208
205
209
impl Clone for Identifier {
@@ -257,12 +261,6 @@ impl Drop for Identifier {
257
261
}
258
262
}
259
263
260
- impl Identifier {
261
- pub ( crate ) fn ptr_eq ( & self , rhs : & Self ) -> bool {
262
- self . head == rhs. head && self . tail == rhs. tail
263
- }
264
- }
265
-
266
264
impl PartialEq for Identifier {
267
265
fn eq ( & self , rhs : & Self ) -> bool {
268
266
if self . ptr_eq ( rhs) {
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ impl Ord for Prerelease {
53
53
if self . identifier . ptr_eq ( & rhs. identifier ) {
54
54
return Ordering :: Equal ;
55
55
}
56
+
56
57
match self . is_empty ( ) {
57
58
// A real release compares greater than prerelease.
58
59
true => return Ordering :: Greater ,
@@ -110,6 +111,7 @@ impl Ord for BuildMetadata {
110
111
if self . identifier . ptr_eq ( & rhs. identifier ) {
111
112
return Ordering :: Equal ;
112
113
}
114
+
113
115
let lhs = self . as_str ( ) . split ( '.' ) ;
114
116
let mut rhs = rhs. as_str ( ) . split ( '.' ) ;
115
117
You can’t perform that action at this time.
0 commit comments