Rellum Rellum

S0151: effect function result used as statement

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

Explanation

Effect functions that return a value must have that value bound with name = function!(...). A bare effect-function call in an effect body is only valid when the function returns Unit.

Common causes

Canonical fixes

Before:

load_config!()

After:

config = load_config!()

Code example

load_config!()