From 6158cd57147f2e6e451989354d9a4e17606825d3 Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 29 Jul 2020 19:39:50 +0200 Subject: [PATCH] factor: Introduce a type alias for exponents This way, we can easily replace u8 with a larger type when moving to support larger integers. --- src/uu/factor/src/factor.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uu/factor/src/factor.rs b/src/uu/factor/src/factor.rs index 4e5322084..6a7f688ac 100644 --- a/src/uu/factor/src/factor.rs +++ b/src/uu/factor/src/factor.rs @@ -61,6 +61,9 @@ impl PartialEq for Decomposition { true } +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct Factors { + f: BTreeMap, } impl Eq for Decomposition {}