mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
Merge pull request #15 from bitinha/master
Fix PartialOrd for ServerTick and DemoTick
This commit is contained in:
commit
f595843eb3
1 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ impl PartialEq<u32> for ServerTick {
|
|||
|
||||
impl PartialOrd<u32> for ServerTick {
|
||||
fn partial_cmp(&self, other: &u32) -> Option<Ordering> {
|
||||
other.partial_cmp(&self.0)
|
||||
self.0.partial_cmp(other)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -257,7 +257,7 @@ impl PartialEq<u32> for DemoTick {
|
|||
|
||||
impl PartialOrd<u32> for DemoTick {
|
||||
fn partial_cmp(&self, other: &u32) -> Option<Ordering> {
|
||||
other.partial_cmp(&self.0)
|
||||
self.0.partial_cmp(other)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue