File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,13 +154,13 @@ impl SqlMigration {
154
154
155
155
impl PartialOrd for SqlMigration {
156
156
fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > {
157
- Some ( self . version . cmp ( & other. version ) )
157
+ Some ( self . cmp ( other) )
158
158
}
159
159
}
160
160
161
161
impl Ord for SqlMigration {
162
162
fn cmp ( & self , other : & Self ) -> Ordering {
163
- self . partial_cmp ( other) . unwrap ( )
163
+ self . version . cmp ( & other. version )
164
164
}
165
165
}
166
166
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl PartialEq for SignerWithStake {
152
152
153
153
impl PartialOrd for SignerWithStake {
154
154
fn partial_cmp ( & self , other : & Self ) -> Option < std:: cmp:: Ordering > {
155
- Some ( self . party_id . cmp ( & other. party_id ) )
155
+ Some ( self . cmp ( other) )
156
156
}
157
157
}
158
158
You can’t perform that action at this time.
0 commit comments