Closed maurolacy closed 2 years ago
But [Decimal::zero(), Decimal::one()]
is a array or slice, not a range. https://doc.rust-lang.org/1.55.0/std/primitive.slice.html#method.contains
Or am I missing something?
You're right! I'm writing the "range" wrong... thanks, closing in shame.
contains()
was there, so... :-)
contains
idiom for checking ranges is broken forDecimal
.Not sure this will be / can be easily fixed, but good to know it doesn't work, in any case.