S0018: bytes expects [Int]
Generated from rellum-diagnostics/src/db.rs.
Explanation
The bytes built-in builds a Bytes value from integer byte values. Its argument must be an array of Int so each element has a numeric byte representation.
Common causes
- passing a String to bytes
- passing an array whose element type is not Int
- passing a single Int instead of an array
Canonical fixes
- pass an array of Int values
Before:
data = bytes(65)
After:
data = bytes([65])
- convert or parse values before building Bytes
Code example
data = bytes(65)