4444//! You can enable [`Serde`](https://serde.rs/) support for serialization and
4545//! deserialization with the `serde` feature.
4646
47- #![ allow( clippy:: clippy :: many_single_char_names) ]
47+ #![ allow( clippy:: many_single_char_names) ]
4848#![ warn( missing_docs) ]
4949#![ doc( html_root_url = "https://docs.rs/versions/6.0.0" ) ]
5050
@@ -345,7 +345,7 @@ impl Ord for SemVer {
345345 ( None , None ) => Equal ,
346346 ( None , _) => Greater ,
347347 ( _, None ) => Less ,
348- ( Some ( ap) , Some ( bp) ) => ap. cmp ( & bp) ,
348+ ( Some ( ap) , Some ( bp) ) => ap. cmp ( bp) ,
349349 } ,
350350 }
351351 }
@@ -508,7 +508,7 @@ impl Version {
508508 // The Mess's epoch is a letter, etc.
509509 None => Greater ,
510510 Some ( me) => match e. cmp ( & me) {
511- Equal => Version :: cmp_mess_continued ( self , & m) ,
511+ Equal => Version :: cmp_mess_continued ( self , m) ,
512512 ord => ord,
513513 } ,
514514 } ,
@@ -520,7 +520,7 @@ impl Version {
520520 // The `Version` has an epoch but the `Mess` doesn't. Or if it does,
521521 // it's malformed.
522522 Some ( e) if e > 0 => Greater ,
523- _ => Version :: cmp_mess_continued ( self , & other) ,
523+ _ => Version :: cmp_mess_continued ( self , other) ,
524524 }
525525 }
526526
@@ -953,7 +953,7 @@ impl Ord for Release {
953953 . iter ( )
954954 . zip_longest ( & other. 0 )
955955 . find_map ( |eob| match eob {
956- Both ( a, b) => match a. cmp_semver ( & b) {
956+ Both ( a, b) => match a. cmp_semver ( b) {
957957 Less => Some ( Less ) ,
958958 Greater => Some ( Greater ) ,
959959 Equal => None ,
@@ -1016,7 +1016,7 @@ impl Ord for Chunks {
10161016 . iter ( )
10171017 . zip_longest ( & other. 0 )
10181018 . find_map ( |eob| match eob {
1019- Both ( a, b) => match a. cmp_lenient ( & b) {
1019+ Both ( a, b) => match a. cmp_lenient ( b) {
10201020 Less => Some ( Less ) ,
10211021 Greater => Some ( Greater ) ,
10221022 Equal => None ,
@@ -1176,20 +1176,20 @@ impl Chunk {
11761176
11771177 fn cmp_semver ( & self , other : & Self ) -> Ordering {
11781178 match ( self , other) {
1179- ( Chunk :: Numeric ( a) , Chunk :: Numeric ( b) ) => a. cmp ( & b) ,
1179+ ( Chunk :: Numeric ( a) , Chunk :: Numeric ( b) ) => a. cmp ( b) ,
11801180 ( Chunk :: Numeric ( _) , Chunk :: Alphanum ( _) ) => Less ,
11811181 ( Chunk :: Alphanum ( _) , Chunk :: Numeric ( _) ) => Greater ,
1182- ( Chunk :: Alphanum ( a) , Chunk :: Alphanum ( b) ) => a. cmp ( & b) ,
1182+ ( Chunk :: Alphanum ( a) , Chunk :: Alphanum ( b) ) => a. cmp ( b) ,
11831183 }
11841184 }
11851185
11861186 fn cmp_lenient ( & self , other : & Self ) -> Ordering {
11871187 match ( self , other) {
1188- ( Chunk :: Numeric ( a) , Chunk :: Numeric ( b) ) => a. cmp ( & b) ,
1188+ ( Chunk :: Numeric ( a) , Chunk :: Numeric ( b) ) => a. cmp ( b) ,
11891189 ( a @ Chunk :: Alphanum ( x) , b @ Chunk :: Alphanum ( y) ) => {
11901190 match ( a. single_digit_lenient ( ) , b. single_digit_lenient ( ) ) {
11911191 ( Some ( i) , Some ( j) ) => i. cmp ( & j) ,
1192- _ => x. cmp ( & y) ,
1192+ _ => x. cmp ( y) ,
11931193 }
11941194 }
11951195 ( Chunk :: Numeric ( n) , b @ Chunk :: Alphanum ( _) ) => match b. single_digit_lenient ( ) {
@@ -1202,7 +1202,7 @@ impl Chunk {
12021202 } ,
12031203 ( a @ Chunk :: Alphanum ( _) , Chunk :: Numeric ( n) ) => match a. single_digit_lenient ( ) {
12041204 None => Less ,
1205- Some ( m) => match m. cmp ( & n) {
1205+ Some ( m) => match m. cmp ( n) {
12061206 // 1.2.0rc1 < 1.2.0
12071207 Equal => Less ,
12081208 c => c,
0 commit comments