modes:pair: implement Display for Pair

This commit is contained in:
2026-04-02 06:09:11 +01:00
committed by oreodave
parent da60b41b97
commit 599fb44edb

View File

@@ -37,3 +37,12 @@ impl Pair {
} }
} }
} }
use std::fmt::{Display, Formatter, Result};
impl Display for Pair {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
write!(f, "Pair({}, {})", self.0, self.1)
}
}