fix: Derive PartialOrd and Ord

This commit is contained in:
2026-04-27 20:54:15 -06:00
parent 62f4943bdb
commit 885bbfeebe

View File

@@ -1,6 +1,6 @@
use std::{fmt, ops}; use std::{fmt, ops};
#[derive(Debug, PartialEq, Eq, Clone, Copy)] #[derive(Debug, PartialEq, Eq, Clone, Copy, PartialOrd, Ord)]
pub struct Fraction { pub struct Fraction {
num: i64, num: i64,
den: i64, den: i64,