@@ -348,9 +348,11 @@ impl PartialEq<Option<Blake2b256Hash>> for Point {
348348 pallas:: network:: miniprotocols:: Point :: Origin => false ,
349349 }
350350 } ,
351- None => match self . 0 {
352- pallas:: network:: miniprotocols:: Point :: Specific ( _, ref hash) => hash. is_empty ( ) ,
353- pallas:: network:: miniprotocols:: Point :: Origin => true ,
351+ None => {
352+ match self . 0 {
353+ pallas:: network:: miniprotocols:: Point :: Specific ( _, ref hash) => hash. is_empty ( ) ,
354+ pallas:: network:: miniprotocols:: Point :: Origin => true ,
355+ }
354356 } ,
355357 }
356358 }
@@ -469,13 +471,19 @@ fn cmp_point(
469471 a : & pallas:: network:: miniprotocols:: Point , b : & pallas:: network:: miniprotocols:: Point ,
470472) -> Ordering {
471473 match a {
472- pallas:: network:: miniprotocols:: Point :: Origin => match b {
473- pallas:: network:: miniprotocols:: Point :: Origin => Ordering :: Equal ,
474- pallas:: network:: miniprotocols:: Point :: Specific ( ..) => Ordering :: Less ,
474+ pallas:: network:: miniprotocols:: Point :: Origin => {
475+ match b {
476+ pallas:: network:: miniprotocols:: Point :: Origin => Ordering :: Equal ,
477+ pallas:: network:: miniprotocols:: Point :: Specific ( ..) => Ordering :: Less ,
478+ }
475479 } ,
476- pallas:: network:: miniprotocols:: Point :: Specific ( slot, _) => match b {
477- pallas:: network:: miniprotocols:: Point :: Origin => Ordering :: Greater ,
478- pallas:: network:: miniprotocols:: Point :: Specific ( other_slot, _) => slot. cmp ( other_slot) ,
480+ pallas:: network:: miniprotocols:: Point :: Specific ( slot, _) => {
481+ match b {
482+ pallas:: network:: miniprotocols:: Point :: Origin => Ordering :: Greater ,
483+ pallas:: network:: miniprotocols:: Point :: Specific ( other_slot, _) => {
484+ slot. cmp ( other_slot)
485+ } ,
486+ }
479487 } ,
480488 }
481489}
0 commit comments