Rellum Rellum

S0034: arithmetic operator requires Int or Float

Generated from rellum-diagnostics/src/db.rs.

Explanation

The -, *, and / operators are numeric operations. Both operands must have the same numeric type, and Rellum does not implicitly convert other values into Int or Float.

Common causes

Canonical fixes

Before:

value = text - suffix

After:

value = count - offset

Code example

value = text - suffix