Rellum Rellum

W0023: multiple effects have unspecified relative order

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

Explanation

Independent effect bindings that can fire from the same trigger are scheduled in the same tick without a guaranteed relative order. If both perform external side effects, relying on their order is unsafe.

Common causes

Canonical fixes

Before:

log! on data => write!(log_path, data)
backup! on data => write!(backup_path, data)

After:

persist! on data => {
    write!(log_path, data)
    write!(backup_path, data)
}

Code example

log! on data => write!(log_path, data)
backup! on data => write!(backup_path, data)