diff --git a/corelib/src/ops/range.cairo b/corelib/src/ops/range.cairo index abb3651b127..516284064eb 100644 --- a/corelib/src/ops/range.cairo +++ b/corelib/src/ops/range.cairo @@ -135,6 +135,15 @@ pub impl RangeInclusiveOpImpl of RangeInclusiveOp { } } +impl RangeInclusiveDebug> of crate::fmt::Debug> { + fn fmt(self: @RangeInclusive, ref f: crate::fmt::Formatter) -> Result<(), crate::fmt::Error> { + self.start.fmt(ref f)?; + write!(f, "..=")?; + self.end.fmt(ref f)?; + Result::Ok(()) + } +} + impl RangeInclusiveIteratorImpl< T, +One, +Add, +Copy, +Drop, +PartialEq, +PartialOrd, > of Iterator> {