Apply suggestions from code review

Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
Malo 2025-01-23 14:16:55 +01:00 committed by GitHub
parent f82c5bb559
commit 3c9ddd8031
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -881,8 +881,8 @@ impl Array {
Value::Int(x) => x.cmp(&0), Value::Int(x) => x.cmp(&0),
x => bail!( x => bail!(
span, span,
"expected integer from `compare` function; got {}", "expected integer from `compare` function, got {}",
x.repr() x.ty()
), ),
}), }),
None => ops::compare(&x, &y).at(span), None => ops::compare(&x, &y).at(span),