Rellum Rellum

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

Canonical fixes

Before:

data = bytes(65)

After:

data = bytes([65])

Code example

data = bytes(65)