From cbc186d40320585658e4bfcf7d7668fab9ffad18 Mon Sep 17 00:00:00 2001 From: cairoIover <193099744+cairoIover@users.noreply.github.com> Date: Sat, 4 Jan 2025 23:48:16 +0100 Subject: [PATCH] add debug impl --- corelib/src/ops/range.cairo | 9 +++++++++ 1 file changed, 9 insertions(+) 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> {