Rellum Rellum

S0093: ? error type mismatch

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

Explanation

A ? expression can propagate only the same error type declared by the enclosing Result-returning function. If the inner Result has a different err type, the compiler requires an explicit conversion so callers see one stable error type.

Common causes

Canonical fixes

Before:

load() : Result[String, String] = read_file()?

After:

load() : Result[String, IoError] = read_file()?

Code example

load() : Result[String, String] = read_file()?