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
- calling a value-returning effect function as a standalone statement
- forgetting to bind an awaited effect-function result before continuing
Canonical fixes
- bind the effect-function result
Before:
load_config!()
After:
config = load_config!()
- change the effect function to return Unit if the result is intentionally unused
Code example
load_config!()