fix: Derive PartialOrd and Ord
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::{fmt, ops};
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy, PartialOrd, Ord)]
|
||||
pub struct Fraction {
|
||||
num: i64,
|
||||
den: i64,
|
||||
|
||||
Reference in New Issue
Block a user